ignore fields p_fpop_err in scheduler requests (still there from

4.19 core clients) else these generate lots of logfile noise.
David, please revert if you don't like it.

svn path=/trunk/boinc/; revision=6009
This commit is contained in:
Bruce Allen 2005-05-04 04:26:58 +00:00
parent 2a0574767c
commit d839c2a8d8
2 changed files with 18 additions and 0 deletions

View File

@ -5999,3 +5999,12 @@ David 3 May 2005
sched/ sched/
handle_request.C handle_request.C
server_types.C server_types.C
Bruce 3 May 2005
- ignore fields p_fpop_err in scheduler requests (still there from
4.19 core clients) else these generate lots of logfile noise.
David, please revert if you don't like it.
sched/
server_types.C

View File

@ -642,6 +642,9 @@ int HOST::parse(FILE* fin) {
p_ncpus = 1; p_ncpus = 1;
while (fgets(buf, 256, fin)) { while (fgets(buf, 256, fin)) {
int trash_int;
double trash_double;
if (match_tag(buf, "</host_info>")) return 0; if (match_tag(buf, "</host_info>")) return 0;
else if (parse_int(buf, "<timezone>", timezone)) continue; else if (parse_int(buf, "<timezone>", timezone)) continue;
else if (parse_str(buf, "<domain_name>", domain_name, sizeof(domain_name))) continue; else if (parse_str(buf, "<domain_name>", domain_name, sizeof(domain_name))) continue;
@ -663,6 +666,12 @@ int HOST::parse(FILE* fin) {
else if (parse_double(buf, "<d_free>", d_free)) continue; else if (parse_double(buf, "<d_free>", d_free)) continue;
else if (parse_double(buf, "<n_bwup>", n_bwup)) continue; else if (parse_double(buf, "<n_bwup>", n_bwup)) continue;
else if (parse_double(buf, "<n_bwdown>", n_bwdown)) continue; else if (parse_double(buf, "<n_bwdown>", n_bwdown)) continue;
// following four lines can be eliminated with a later version of
// the core client.
else if (parse_int(buf, "<p_fpop_err>", trash_int)) continue;
else if (parse_int(buf, "<p_iop_err>", trash_int)) continue;
else if (parse_int(buf, "<p_membw_err>", trash_int)) continue;
else if (parse_double(buf, "<p_calculated>", trash_double)) continue;
else { else {
log_messages.printf(SCHED_MSG_LOG::NORMAL, log_messages.printf(SCHED_MSG_LOG::NORMAL,
"HOST::parse(): unrecognized: %s\n", buf "HOST::parse(): unrecognized: %s\n", buf