- bug fixes to previous checkin

svn path=/trunk/boinc/; revision=25218
This commit is contained in:
David Anderson 2012-02-08 01:53:19 +00:00
parent 7e48057f44
commit 4b7a079776
3 changed files with 5 additions and 3 deletions

View File

@ -431,8 +431,8 @@ int PROJECT::write_state(MIOFILE& out, bool gui_rpc) {
" <name>%s</name>\n" " <name>%s</name>\n"
" <value>%f</value>\n" " <value>%f</value>\n"
" </rsc_backoff_interval>\n", " </rsc_backoff_interval>\n",
rsc_name(j), rsc_pwf[j].backoff_interval, rsc_name(j), rsc_pwf[j].backoff_time,
rsc_name(j), rsc_pwf[j].backoff_time rsc_name(j), rsc_pwf[j].backoff_interval
); );
if (no_rsc_ams[j]) { if (no_rsc_ams[j]) {
out.printf(" <no_rsc_ams>%s</no_rsc_ams>\n", rsc_name(j)); out.printf(" <no_rsc_ams>%s</no_rsc_ams>\n", rsc_name(j));

View File

@ -38,7 +38,7 @@
class CBOINCTaskCtrl; class CBOINCTaskCtrl;
class CBOINCListCtrl; class CBOINCListCtrl;
class PROJECT; struct PROJECT;
class CTaskItem : wxObject { class CTaskItem : wxObject {

View File

@ -299,6 +299,7 @@ int PROJECT::parse(XML_PARSER& xp) {
} else if (!strcmp(buf, "ATI")) { } else if (!strcmp(buf, "ATI")) {
rsc_desc_ati.backoff_time = value; rsc_desc_ati.backoff_time = value;
} }
break;
} }
if (xp.parse_str("name", buf, sizeof(buf))) continue; if (xp.parse_str("name", buf, sizeof(buf))) continue;
if (xp.parse_double("value", value)) continue; if (xp.parse_double("value", value)) continue;
@ -316,6 +317,7 @@ int PROJECT::parse(XML_PARSER& xp) {
} else if (!strcmp(buf, "ATI")) { } else if (!strcmp(buf, "ATI")) {
rsc_desc_ati.backoff_interval = value; rsc_desc_ati.backoff_interval = value;
} }
break;
} }
if (xp.parse_str("name", buf, sizeof(buf))) continue; if (xp.parse_str("name", buf, sizeof(buf))) continue;
if (xp.parse_double("value", value)) continue; if (xp.parse_double("value", value)) continue;