- client: connected_frac -1 is OK; fixes #821

svn path=/trunk/boinc/; revision=16859
This commit is contained in:
David Anderson 2009-01-09 19:33:39 +00:00
parent edf4fba11b
commit 04072e887f
2 changed files with 8 additions and 7 deletions

View File

@ -71,3 +71,9 @@ Charlie Jan 6 2009
client/ client/
work_fetch.cpp work_fetch.cpp
David 9 Jan 2009
- client: connected_frac -1 is OK; fixes #821
client/
time_stats.cpp

View File

@ -284,13 +284,8 @@ int TIME_STATS::parse(MIOFILE& in) {
} }
continue; continue;
} else if (parse_double(buf, "<connected_frac>", x)) { } else if (parse_double(buf, "<connected_frac>", x)) {
if (x <= 0 || x > 1) { // -1 means undefined; skip check
msg_printf(0, MSG_INTERNAL_ERROR, connected_frac = x;
"bad value %f of time stats connected_frac; ignoring", x
);
} else {
connected_frac = x;
}
continue; continue;
} else if (parse_double(buf, "<active_frac>", x)) { } else if (parse_double(buf, "<active_frac>", x)) {
if (x <= 0 || x > 1) { if (x <= 0 || x > 1) {