From b8353aa9eb017f66166da9ee03ad7cd09abda175 Mon Sep 17 00:00:00 2001 From: imarom Date: Thu, 18 Aug 2016 13:49:59 +0300 Subject: CPU util. measurements fix (more accurate and steady) see #trex-246 --- src/bp_sim.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/bp_sim.cpp') diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp index 2d1d020b..773e82fc 100755 --- a/src/bp_sim.cpp +++ b/src/bp_sim.cpp @@ -4615,8 +4615,7 @@ double CFlowGenList::GetCpuUtilRaw(){ void CFlowGenList::UpdateFast(){ - int i; - for (i=0; i<(int)m_threads_info.size(); i++) { + for (int i=0; i<(int)m_threads_info.size(); i++) { CFlowGenListPerThread * lp=m_threads_info[i]; lp->Update(); } -- cgit 1.2.3-korg