From 3eb430eaec14c994ee483dda3ecf187ffa33d907 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 28 May 2013 21:19:28 -0700 Subject: [PATCH] client & MGR: when writing cc_config.xml, put in correct alphabetical order --- client/log_flags.cpp | 2 +- lib/cc_config.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/log_flags.cpp b/client/log_flags.cpp index 7e1b8ae250..958a460d61 100644 --- a/client/log_flags.cpp +++ b/client/log_flags.cpp @@ -304,7 +304,6 @@ int CONFIG::parse_options_client(XML_PARSER& xp) { } if (xp.parse_bool("disallow_attach", disallow_attach)) continue; if (xp.parse_bool("dont_check_file_sizes", dont_check_file_sizes)) continue; - if (xp.parse_int("max_event_log_lines", max_event_log_lines)) continue; if (xp.parse_bool("dont_contact_ref_site", dont_contact_ref_site)) continue; if (xp.match_tag("exclude_gpu")) { EXCLUDE_GPU eg; @@ -359,6 +358,7 @@ int CONFIG::parse_options_client(XML_PARSER& xp) { ignore_gpu_instance[PROC_TYPE_INTEL_GPU].push_back(n); continue; } + if (xp.parse_int("max_event_log_lines", max_event_log_lines)) continue; if (xp.parse_int("max_file_xfers", max_file_xfers)) continue; if (xp.parse_int("max_file_xfers_per_project", max_file_xfers_per_project)) continue; if (xp.parse_int("max_stderr_file_size", max_stderr_file_size)) continue; diff --git a/lib/cc_config.cpp b/lib/cc_config.cpp index 128c15bfdc..6236a75973 100644 --- a/lib/cc_config.cpp +++ b/lib/cc_config.cpp @@ -207,7 +207,6 @@ void CONFIG::defaults() { data_dir[0] = 0; disallow_attach = false; dont_check_file_sizes = false; - max_event_log_lines = DEFAULT_MAX_DISPLAYED_EVENT_LOG_LINES; dont_contact_ref_site = false; exclude_gpus.clear(); exclusive_apps.clear(); @@ -224,6 +223,7 @@ void CONFIG::defaults() { for (int i=1; i%d\n" " %d\n" - " %d\n" " %d\n", disallow_attach, dont_check_file_sizes, - max_event_log_lines, dont_contact_ref_site ); @@ -582,6 +580,7 @@ int CONFIG::write(MIOFILE& out, LOG_FLAGS& log_flags) { } out.printf( + " %d\n" " %d\n" " %d\n" " %d\n" @@ -594,6 +593,7 @@ int CONFIG::write(MIOFILE& out, LOG_FLAGS& log_flags) { " %d\n" " %d\n" " %d\n", + max_event_log_lines, max_file_xfers, max_file_xfers_per_project, max_stderr_file_size,