- client: bug fixes for the above

svn path=/trunk/boinc/; revision=21243
This commit is contained in:
David Anderson 2010-04-22 02:57:50 +00:00
parent 87c84afe0a
commit 2ab7dbfc65
5 changed files with 16 additions and 0 deletions

View File

@ -3046,3 +3046,12 @@ David 21 Apr 2010
client_stte.cpp
net_stats.cpp,h
cs_prefs.cpp
David 21 Apr 2010
- client: bug fixes for the above
client/
cpu_sched.cpp
cs_prefs.cpp
net_stats.cpp
lib/
prefs.cpp

View File

@ -1197,12 +1197,14 @@ static inline void assign_coprocs(vector<RESULT*>& jobs) {
double usage;
gstate.host_info.coprocs.clear_usage();
#ifndef SIM
if (coproc_cuda) {
coproc_cuda->get_available_ram();
}
if (coproc_ati) {
coproc_ati->get_available_ram();
}
#endif
// fill in pending usage
//

View File

@ -189,6 +189,7 @@ static string reason_string(int reason) {
case SUSPEND_REASON_INITIAL_DELAY: return " - initial delay";
case SUSPEND_REASON_EXCLUSIVE_APP_RUNNING: return " - an exclusive app is running";
case SUSPEND_REASON_CPU_USAGE: return " - CPU usage is too high";
case SUSPEND_REASON_NETWORK_QUOTA_EXCEEDED: return " - network bandwidth limit exceeded";
}
return "";
}

View File

@ -321,6 +321,7 @@ void DAILY_XFER_HISTORY::init() {
MIOFILE mf;
XML_PARSER xp(&mf);
mf.init_file(f);
bool is_tag;
char tag[256];
@ -341,6 +342,7 @@ void DAILY_XFER_HISTORY::init() {
}
}
}
fclose(f);
}
void DAILY_XFER_HISTORY::poll() {

View File

@ -534,12 +534,14 @@ int GLOBAL_PREFS::parse_override(
daily_xfer_limit_mb = itemp;
mask.daily_xfer_limit_mb = true;
}
continue;
}
if (xp.parse_int(tag, "daily_xfer_period", itemp)) {
if (itemp >= 0) {
daily_xfer_period = itemp;
mask.daily_xfer_period = true;
}
continue;
}
if (xp.parse_bool(tag, "host_specific", host_specific)) {
continue;