From add5c0fb87aca59294c84261a4def4c5237b1196 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 17 Jun 2019 01:09:25 +0200 Subject: [PATCH] Perform proper division. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 5f317926..ed9842ed 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8844,7 +8844,7 @@ void View::DrawInfo() } else { - const auto pxns = numBins / ( tmax - tmin ); + const auto pxns = numBins / double( tmax - tmin ); const auto nspx = 1.0 / pxns; const auto scale = std::max( 0.0f, round( log10( nspx ) + 2 ) ); const auto step = pow( 10, scale );