From 817dfd87ef4b6a27d0cd8a61e9d8e6b016d57f33 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 30 May 2014 19:25:28 -0400 Subject: [PATCH] VBOX: Only get the updated CPU time every tenth iteration through the main loop. --- samples/vboxwrapper/vboxwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index 75312bd20d..7141bd55d2 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/samples/vboxwrapper/vboxwrapper.cpp @@ -1019,7 +1019,7 @@ int main(int argc, char** argv) { // Basic bookkeeping // - if (loop_iteraction % 10) { + if ((loop_iteraction % 10) == 0) { current_cpu_time = starting_cpu_time + vm.get_vm_cpu_time(); } if (vm.job_duration) {