Commit 1d43d654 authored by David Anderson's avatar David Anderson

- client: fix bug in time-of-day limit prefs (both CPU and network)

svn path=/trunk/boinc/; revision=17270
parent 2afd98ae
......@@ -1581,3 +1581,9 @@ David 13 Feb 2009
client/
scheduler_op.cpp,h
David 13 Feb 2009
- client: fix bug in time-of-day limit prefs (both CPU and network)
lib/
prefs.cpp,h
......@@ -167,7 +167,7 @@ bool TIME_PREFS::suspended() const {
if (day>=0 && day<7 && week.days[day].present) {
return week.days[day].suspended(hour);
}
return span.suspended(hour);
return TIME_SPAN::suspended(hour);
}
......
......@@ -114,13 +114,12 @@ protected:
struct TIME_PREFS : public TIME_SPAN {
TIME_SPAN span;
WEEK_PREFS week;
TIME_PREFS() {}
TIME_PREFS(double start, double end) {
span.start_hour = start;
span.end_hour = end;
start_hour = start;
end_hour = end;
}
void clear();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment