diff --git a/checkin_notes b/checkin_notes
index bd59530d17..90f9d2e382 100644
--- a/checkin_notes
+++ b/checkin_notes
@@ -8437,3 +8437,12 @@ Charlie 26 Nov 2010
client/
client_types.cpp
+
+David 26 Nov 2010
+ - client: use 0|1 instead of or "" as XML boolean.
+ This distinguishes between "false" and "not defined"
+ (did this in a few places, should do it everywhere)
+
+ client/
+ acct_mgr.cpp
+ client_types.cpp
diff --git a/client/acct_mgr.cpp b/client/acct_mgr.cpp
index 221671ee92..44194a125c 100644
--- a/client/acct_mgr.cpp
+++ b/client/acct_mgr.cpp
@@ -153,20 +153,22 @@ int ACCT_MGR_OP::do_rpc(
" %d\n"
" %f\n"
" %f\n"
- "%s%s%s%s%s"
+ " %d\n"
+ " %d\n"
+ " %d\n"
+ " %d\n"
" \n",
p->master_url,
p->project_name,
- p->suspended_via_gui,
+ p->suspended_via_gui?1:0,
p->authenticator,
p->hostid,
not_started_dur,
in_progress_dur,
- p->attached_via_acct_mgr?" \n":"",
- p->suspended_via_gui?" \n":"",
- p->dont_request_more_work?" \n":"",
- p->detach_when_done?" \n":"",
- p->ended?" \n":""
+ p->attached_via_acct_mgr?1:0,
+ p->dont_request_more_work?1:0,
+ p->detach_when_done?1:0,
+ p->ended?1:0
);
}
if (boinc_file_exists(GLOBAL_PREFS_FILE_NAME)) {
diff --git a/client/client_types.cpp b/client/client_types.cpp
index 45f2310052..1662a78bb2 100644
--- a/client/client_types.cpp
+++ b/client/client_types.cpp
@@ -314,7 +314,10 @@ int PROJECT::write_state(MIOFILE& out, bool gui_rpc) {
" %d\n"
" %d\n"
" %d\n"
- "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
+ " %d\n"
+ " %d\n"
+ " %d\n"
+ "%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
master_url,
project_name,
symstore,
@@ -362,6 +365,9 @@ int PROJECT::write_state(MIOFILE& out, bool gui_rpc) {
sched_rpc_pending,
send_time_stats_log,
send_job_log,
+ no_cpu_apps?1:0,
+ no_cuda_apps?1:0,
+ no_ati_apps?1:0,
anonymous_platform?" \n":"",
master_url_fetch_pending?" \n":"",
trickle_up_pending?" \n":"",
@@ -374,9 +380,6 @@ int PROJECT::write_state(MIOFILE& out, bool gui_rpc) {
detach_when_done?" \n":"",
ended?" \n":"",
attached_via_acct_mgr?" \n":"",
- no_cpu_apps?" \n":"",
- no_cuda_apps?" \n":"",
- no_ati_apps?" \n":"",
(this == gstate.scheduler_op->cur_proj)?" \n":"",
use_symlinks?" \n":""
);