- validator: old scheduler bugs may cause result.flops_estimate

to be negative in some cases.
    Detect this, and use 1e10 instead


svn path=/trunk/boinc/; revision=24146
This commit is contained in:
David Anderson 2011-09-08 19:36:14 +00:00
parent 90c84d2c7b
commit 826cd355e5
2 changed files with 11 additions and 3 deletions

View File

@ -5731,3 +5731,11 @@ David 8 Sept 2011
html/inc/
result.inc
David 8 Sept 2011
- validator: old scheduler bugs may cause result.flops_estimate
to be negative in some cases.
Detect this, and use 1e10 instead
sched/
credit.cpp

View File

@ -467,11 +467,11 @@ int get_pfc(
return 0;
}
// r.flops_estimate shouldn't be zero,
// but (because of scheduler bug) it can be.
// r.flops_estimate should be positive
// but (because of scheduler bug) it may not be.
// At this point we don't have much to go on, so use 1e10.
//
if (!r.flops_estimate) {
if (r.flops_estimate <= 0) {
r.flops_estimate = 1e10;
}