- client: fix crashing bug in GPU message display

- client: show a couple more config flags on startup

svn path=/trunk/boinc/; revision=19191
This commit is contained in:
David Anderson 2009-09-26 05:23:05 +00:00
parent 4e63946ea2
commit 35c6e2ee1b
3 changed files with 21 additions and 4 deletions

View File

@ -8159,3 +8159,11 @@ David 25 Sept 2009
html/ops/
manage_app_versions.php
David 25 Sept 2009
- client: fix crashing bug in GPU message display
- client: show a couple more config flags on startup
client/
client_state.cpp
log_flags.cpp

View File

@ -265,7 +265,7 @@ int CLIENT_STATE::init() {
msg_printf(NULL, MSG_INFO, descs[i].c_str());
}
if (log_flags.coproc_debug) {
for (i=0; i<descs.size(); i++) {
for (i=0; i<warnings.size(); i++) {
msg_printf(NULL, MSG_INFO, warnings[i].c_str());
}
}

View File

@ -166,14 +166,23 @@ void LOG_FLAGS::show() {
// TODO: show other config options
//
void CONFIG::show() {
if (config.ncpus>=0) {
msg_printf(NULL, MSG_INFO, "Config: use at most %d CPUs", config.ncpus);
}
if (config.no_gpus) {
msg_printf(NULL, MSG_INFO, "Configured to not use coprocessors");
msg_printf(NULL, MSG_INFO, "Config: don't use coprocessors");
}
if (config.no_priority_change) {
msg_printf(NULL, MSG_INFO, "Configured to run apps at regular priority");
msg_printf(NULL, MSG_INFO, "Config: run apps at regular priority");
}
if (config.report_results_immediately) {
msg_printf(NULL, MSG_INFO, "Config: report completed tasks immediately");
}
if (config.use_all_gpus) {
msg_printf(NULL, MSG_INFO, "Configured to use all coprocessors");
msg_printf(NULL, MSG_INFO, "Config: use all coprocessors");
}
if (config.zero_debts) {
msg_printf(NULL, MSG_INFO, "Config: zero long-term debts on startup");
}
}