From b7a27d02afe1941eed8f64f2164447ff1a06daa6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 28 Sep 2021 01:11:22 +0200 Subject: [PATCH] Fix total time in find zone, if limit range is enabled. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index f8750b71..1a9c8cfd 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -10109,7 +10109,8 @@ void View::DrawFindZone() { tmin = *sortedBegin; tmax = *(sortedEnd-1); - total = tmax - tmin; + total = 0; + for( auto ptr = sortedBegin; ptr != sortedEnd; ptr++ ) total += *ptr; } }