From 989cc112dba1a456bcc179d12c6fd511ae9858b6 Mon Sep 17 00:00:00 2001 From: Lana Alber Date: Tue, 21 Sep 2004 19:43:48 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=4216 --- client/prefs.C | 4 ++++ client/prefs.h | 1 + 2 files changed, 5 insertions(+) diff --git a/client/prefs.C b/client/prefs.C index 4df69af344..ca8a7851f9 100644 --- a/client/prefs.C +++ b/client/prefs.C @@ -56,6 +56,7 @@ void GLOBAL_PREFS::init() { //work_buf_max_days = 0.2; work_buf_min_days = 0.1; max_cpus = 1; + cpu_sched_period= 3600; disk_interval = 60; disk_max_used_gb = 1; disk_max_used_pct = 50; @@ -172,6 +173,9 @@ int GLOBAL_PREFS::parse(FILE* in, char* host_venue, bool& found_venue) { } else if (parse_double(buf, "", disk_interval)) { if (disk_interval<0) disk_interval = 0; continue; + } else if (parse_double(buf, "", cpu_sched_period)) { + cpu_sched_period= cpu_sched_period * 60; + continue; } else if (parse_double(buf, "", disk_max_used_gb)) { continue; } else if (parse_double(buf, "", disk_max_used_pct)) { diff --git a/client/prefs.h b/client/prefs.h index 2c185279cc..7b21ab1596 100644 --- a/client/prefs.h +++ b/client/prefs.h @@ -46,6 +46,7 @@ struct GLOBAL_PREFS { //double work_buf_max_days; double work_buf_min_days; int max_cpus; + double cpu_sched_period; double disk_interval; double disk_max_used_gb; double disk_max_used_pct;