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/
|
||||
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;
|
||||
} else if (parse_double(buf, "<connected_frac>", x)) {
|
||||
if (x <= 0 || x > 1) {
|
||||
msg_printf(0, MSG_INTERNAL_ERROR,
|
||||
"bad value %f of time stats connected_frac; ignoring", x
|
||||
);
|
||||
} else {
|
||||
connected_frac = x;
|
||||
}
|
||||
// -1 means undefined; skip check
|
||||
connected_frac = x;
|
||||
continue;
|
||||
} else if (parse_double(buf, "<active_frac>", x)) {
|
||||
if (x <= 0 || x > 1) {
|
||||
|
|
Loading…
Reference in New Issue