summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.cpp
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-05-10 21:00:45 +0300
committerHanoh Haim <hhaim@cisco.com>2016-05-10 21:00:45 +0300
commit3a0c1c8333382ff8402b05ce47d17f100187df6f (patch)
tree1662f9a268241d1dd6faf3c7b3a8a008455e96b2 /src/bp_sim.cpp
parent2d37b9f98020a4458aaad1f3fd05ca5e408213e0 (diff)
cpu% without tsc
Diffstat (limited to 'src/bp_sim.cpp')
-rwxr-xr-xsrc/bp_sim.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp
index f9cb3220..ccd62f0e 100755
--- a/src/bp_sim.cpp
+++ b/src/bp_sim.cpp
@@ -3727,6 +3727,9 @@ inline int CNodeGenerator::teardown(CFlowGenListPerThread * thread,
bool always,
double &old_offset,
double offset){
+
+ thread->m_cpu_dp_u.commit1();
+
/* to do */
if ( thread->is_terminated_by_master() ) {
return (0);
@@ -4511,7 +4514,7 @@ double CFlowGenList::GetCpuUtil(){
}
-void CFlowGenList::Update(){
+void CFlowGenList::UpdateFast(){
int i;
for (i=0; i<(int)m_threads_info.size(); i++) {