- make startup msgs normal priority; fix crash

svn path=/trunk/boinc/; revision=20031
This commit is contained in:
David Anderson 2009-12-23 23:25:45 +00:00
parent 4569b258c5
commit 5822c19de5
3 changed files with 5 additions and 4 deletions

View File

@ -850,7 +850,7 @@ void ACTIVE_TASK_SET::report_overdue() {
atp = active_tasks[i];
double diff = (gstate.now - atp->result->report_deadline)/86400;
if (diff > 0) {
msg_printf(atp->result->project, MSG_USER_ALERT,
msg_printf(atp->result->project, MSG_INFO,
"Task %s is %.2f days overdue; you may not get credit for it. Consider aborting it.", atp->result->name, diff
);
}

View File

@ -195,6 +195,8 @@ int CLIENT_STATE::init() {
client_start_time = now;
scheduler_op->url_random = drand();
notices.init();
detect_platforms();
time_stats.start();
@ -212,7 +214,7 @@ int CLIENT_STATE::init() {
);
if (core_client_version.prerelease) {
msg_printf(NULL, MSG_USER_ALERT,
msg_printf(NULL, MSG_INFO,
"This a development version of BOINC and may not function properly"
);
}
@ -462,8 +464,6 @@ int CLIENT_STATE::init() {
http_ops->cleanup_temp_files();
notices.init();
initialized = true;
return 0;
}

View File

@ -138,6 +138,7 @@ void NOTICES::write_archive(char* url) {
strcpy(path, NOTICES_DIR"/archive.xml");
}
FILE* f = fopen(path, "w");
if (!f) return;
MIOFILE fout;
fout.init_file(f);
fout.printf("<notices>\n");