From 8af54553ecf4655f32516250e345a78abb63549f Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Tue, 29 Nov 2005 06:34:48 +0000 Subject: [PATCH] Bug fix (from Walt Gribben). Don't allow the min free space preference to be less than 1MB. svn path=/trunk/boinc/; revision=8981 --- checkin_notes | 8 ++++++++ sched/sched_send.C | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 9f47a4d975..df476f3e93 100755 --- a/checkin_notes +++ b/checkin_notes @@ -14039,3 +14039,11 @@ Rom 28 Nov 2005 clientgui/ MainDocument.cpp, .h MainFrame.cpp + +Bruce 29 Nov 2005 + - Bug fix (from Walt Gribben). Don't allow the min free space + preference to be less than 1MB. + + sched/ + sched_send.C + diff --git a/sched/sched_send.C b/sched/sched_send.C index 72ab16168a..65a636d20b 100644 --- a/sched/sched_send.C +++ b/sched/sched_send.C @@ -122,9 +122,8 @@ double max_allowable_disk(SCHEDULER_REQUEST& req, SCHEDULER_REPLY& reply) { // if (prefs.disk_max_used_gb == 0) prefs.disk_max_used_gb = 100.0; // 100 GB if (prefs.disk_max_used_pct == 0) prefs.disk_max_used_pct = 50; // 50% - // FIXME: if user wants to set min_free_gb to zero (this is allowed) then - // the web page interface needs to set it to a small value, eg 1.e-6. - if (prefs.disk_min_free_gb == 0) prefs.disk_min_free_gb = 0.1; // 100 MB + // Always leave at least 1MB free! + if (prefs.disk_min_free_gb < 0.001) prefs.disk_min_free_gb = 0.001; // 1MB // no defaults for total/free disk space (host.d_total, d_free) // if they're zero, client will get no work.