diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e6bd47be..3b4959e5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6543,19 +6543,19 @@ void View::DrawFindZone() const auto ty = ImGui::GetFontSize(); auto& zones = zoneData.zones; - auto tmin = m_findZone.selfTime ? zoneData.selfMin : zoneData.min; - auto tmax = m_findZone.selfTime ? zoneData.selfMax : zoneData.max; - auto timeTotal = m_findZone.selfTime ? zoneData.selfTotal : zoneData.total; - + int64_t tmin = m_findZone.tmin; + int64_t tmax = m_findZone.tmax; + int64_t total = m_findZone.total; const auto zsz = zones.size(); if( m_findZone.sortedNum != zsz ) { auto& vec = m_findZone.sorted; vec.reserve( zsz ); - int64_t total = m_findZone.total; size_t i; if( m_findZone.selfTime ) { + tmin = zoneData.selfMin; + tmax = zoneData.selfMax; for( i=m_findZone.sortedNum; i m_findZone.numBins ) @@ -6875,7 +6879,7 @@ void View::DrawFindZone() } } - TextFocused( "Total time:", TimeToString( timeTotal ) ); + TextFocused( "Total time:", TimeToString( total ) ); ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine(); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 005e8ab8..f3b753f3 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -391,6 +391,7 @@ private: bool scheduleResetMatch = false; int selCs = 0; int minBinVal = 1; + int64_t tmin, tmax; struct {