- validator: need parens in boolean expression

svn path=/trunk/boinc/; revision=21814
This commit is contained in:
David Anderson 2010-06-25 19:23:16 +00:00
parent 9e64a36958
commit 5ef4dead7d
2 changed files with 7 additions and 1 deletions

View File

@ -4636,3 +4636,9 @@ David 25 Jun 2010
clientgui/
ViewProjects.cpp
David 25 Jun 2010
- validator: need parens in boolean expression
sched/
credit.cpp

View File

@ -565,7 +565,7 @@ int get_pfc(
);
}
}
if (do_scale && hav.pfc.n < MIN_HOST_SAMPLES || hav.pfc.get_avg()==0) {
if (do_scale && (hav.pfc.n < MIN_HOST_SAMPLES || hav.pfc.get_avg()==0)) {
do_scale = false;
if (config.debug_credit) {
log_messages.printf(MSG_NORMAL,