From d13404887cf80be84170abc6d85420118ce1288f Mon Sep 17 00:00:00 2001 From: Seth Cooper Date: Tue, 25 Feb 2003 07:56:49 +0000 Subject: [PATCH] stopped allowed disk usage from returning negative numbers svn path=/trunk/boinc/; revision=968 --- client/client_state.C | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client_state.C b/client/client_state.C index 708429f930..ef62cb268b 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -334,6 +334,7 @@ int CLIENT_STATE::allowed_disk_usage(double& size) { // Return the minimum of the three // size = min(min(global_prefs.disk_max_used_gb*1e9, percent_space), min_val); + if(size < 0) size = 0; return 0; }