From 8285788396635541541ffe277d99f9cec024b588 Mon Sep 17 00:00:00 2001 From: Michael Gary Date: Mon, 15 Jul 2002 23:28:41 +0000 Subject: [PATCH] Added some time keeping code to app.C svn path=/trunk/boinc/; revision=203 --- client/app.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app.C b/client/app.C index 35f5976a8e..7ab8fb5f09 100644 --- a/client/app.C +++ b/client/app.C @@ -169,6 +169,7 @@ int ACTIVE_TASK::start(bool first_time) { app_prefs.graphics.refresh_period = 5; app_prefs.checkpoint_period = 5; app_prefs.poll_period = 5; + if(!first_time) app_prefs.cpu_time = result->cpu_time; // Write out the app prefs. This has everything in the APP_IN // struct, including graphics prefs and checkpoint/poll prefs @@ -551,7 +552,6 @@ void ACTIVE_TASK_SET::exit_tasks() { // Send a suspend request to the ACTIVE_TASK // void ACTIVE_TASK::suspend() { - prev_cpu_time = cpu_time; // figure out a way to do this, perhaps via trigger file? //kill(atp->pid, SIGSTOP); }