From 2950f3c70ca3ddcad82d17792b34de3ffa7674eb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 6 Jun 2018 23:00:18 +0200 Subject: [PATCH] Total time is already known. --- server/TracyView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b043ef70..f4158dd4 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3393,6 +3393,7 @@ void View::DrawFindZone() auto& zones = zoneData.zones; const auto tmin = zoneData.min; const auto tmax = zoneData.max; + const auto timeTotal = zoneData.total; if( tmin != std::numeric_limits::max() ) { @@ -3598,7 +3599,6 @@ void View::DrawFindZone() } } - int64_t timeTotal = binTime[0]; int64_t maxVal; if( cumulateTime ) { @@ -3606,7 +3606,6 @@ void View::DrawFindZone() for( int i=1; i