From 3ce6b1205fe19b595ccfd388b12a9a3c15008ff7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 15 Oct 2019 16:13:36 +0200 Subject: [PATCH] Don't iterate over 256 CPUs. --- server/TracyView.cpp | 3 ++- server/TracyWorker.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 24e5da46..4350968b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4406,7 +4406,8 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover, const auto origOffset = offset; auto cpuData = m_worker.GetCpuData(); - for( int i=0; i<256; i++ ) + const auto cpuCnt = m_worker.GetCpuDataCpuCount(); + for( int i=0; i