- client: allow zero resource shares from account managers

svn path=/trunk/boinc/; revision=21134
This commit is contained in:
David Anderson 2010-04-07 16:20:49 +00:00
parent 2d7fdacba8
commit 1b5498e151
2 changed files with 7 additions and 1 deletions

View File

@ -2589,3 +2589,9 @@ David 7 Apr 2010
lib/ lib/
procinfo_win.cpp procinfo_win.cpp
procinfo_unix.cpp procinfo_unix.cpp
David 7 Apr 2010
- client: allow zero resource shares from account managers
client/
acct_mgr.cpp

View File

@ -235,7 +235,7 @@ int AM_ACCOUNT::parse(XML_PARSER& xp) {
continue; continue;
} }
if (xp.parse_double(tag, "resource_share", dtemp)) { if (xp.parse_double(tag, "resource_share", dtemp)) {
if (dtemp > 0) { if (dtemp >= 0) {
resource_share.set(dtemp); resource_share.set(dtemp);
} else { } else {
msg_printf(NULL, MSG_INFO, msg_printf(NULL, MSG_INFO,