mirror of https://github.com/BOINC/boinc.git
- client: connected_frac -1 is OK; fixes #821
svn path=/trunk/boinc/; revision=16859
This commit is contained in:
parent
edf4fba11b
commit
04072e887f
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue