mirror of https://github.com/BOINC/boinc.git
client: let app_config.xml specify fraction_done_exact for apps
This commit is contained in:
parent
978b41f4b4
commit
d877983771
|
@ -45,6 +45,9 @@ int APP_CONFIG::parse(XML_PARSER& xp, PROJECT* p) {
|
|||
}
|
||||
continue;
|
||||
}
|
||||
if (xp.parse_bool("fraction_done_exact", fraction_done_exact)) {
|
||||
continue;
|
||||
}
|
||||
if (log_flags.unparsed_xml) {
|
||||
msg_printf(p, MSG_INFO,
|
||||
"Unparsed line in app_config.xml: %s",
|
||||
|
@ -134,6 +137,8 @@ void APP_CONFIGS::config_app_versions(PROJECT* p, bool show_warnings) {
|
|||
continue;
|
||||
}
|
||||
app->max_concurrent = ac.max_concurrent;
|
||||
app->fraction_done_exact = ac.fraction_done_exact;
|
||||
|
||||
if (!ac.gpu_gpu_usage || !ac.gpu_cpu_usage) continue;
|
||||
for (unsigned int j=0; j<gstate.app_versions.size(); j++) {
|
||||
APP_VERSION* avp = gstate.app_versions[j];
|
||||
|
|
|
@ -32,6 +32,7 @@ struct APP_CONFIG {
|
|||
int max_concurrent;
|
||||
double gpu_gpu_usage;
|
||||
double gpu_cpu_usage;
|
||||
bool fraction_done_exact;
|
||||
|
||||
int parse(XML_PARSER&, PROJECT*);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue