- VBOX: Restore the elapsed time from the checkpoint file instead of

aid.starting_elapsed_time.  It appears some older client versions
        are giving erratic results.
        
    samples/vboxwrapper/
        vboxwrapper.cpp

svn path=/trunk/boinc/; revision=24991
This commit is contained in:
Rom Walton 2012-01-03 21:46:57 +00:00
parent d2784ffc4b
commit 3bfd0a145f
2 changed files with 10 additions and 1 deletions

View File

@ -144,3 +144,11 @@ Rom 3 Jan 2012
samples/vboxwrapper/
vbox.cpp, .h
vboxwrapper.cpp
Rom 3 Jan 2012
- VBOX: Restore the elapsed time from the checkpoint file instead of
aid.starting_elapsed_time. It appears some older client versions
are giving erratic results.
samples/vboxwrapper/
vboxwrapper.cpp

View File

@ -360,8 +360,9 @@ int main(int argc, char** argv) {
vm.vm_cpu_count = "1";
}
elapsed_time = aid.starting_elapsed_time;
// Restore from checkpoint
read_checkpoint(checkpoint_cpu_time);
elapsed_time = checkpoint_cpu_time;
// Should we even try to start things up?
if (vm.job_duration && (elapsed_time > vm.job_duration)) {