From 54adc149b59e66fdd61e36dde7dba0f8eb785e94 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 3 Jan 2012 10:11:58 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=24987 --- client/cs_prefs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/cs_prefs.cpp b/client/cs_prefs.cpp index 20b36dd1d5..c9525bad10 100644 --- a/client/cs_prefs.cpp +++ b/client/cs_prefs.cpp @@ -136,6 +136,7 @@ void CLIENT_STATE::get_disk_shares() { non_greedy_usage += p->disk_usage; } } + if (!greedy_rs) greedy_rs = 1; // handle projects w/ zero resource share double greedy_allowed = allowed - non_greedy_usage; if (log_flags.disk_usage_debug) {