diff --git a/checkin_notes b/checkin_notes index 9fc19237da..9e956adc2c 100755 --- a/checkin_notes +++ b/checkin_notes @@ -14905,3 +14905,12 @@ Daniel 2004-07-08 */ Makefile.in +Brian 8 July 2004 + - Fixed a small bug in allowed_disk_usage where the global_prefs.disk_max_used_pct + was directly multiplied with the total disk, creating a disk value that was a factor + of 100 off, effectively never becoming the min value returned by the function. + + client/ + cs_prefs.C + + diff --git a/client/cs_prefs.C b/client/cs_prefs.C index 81bbb4447f..69189e0cdc 100644 --- a/client/cs_prefs.C +++ b/client/cs_prefs.C @@ -62,7 +62,7 @@ void CLIENT_STATE::install_global_prefs() { int CLIENT_STATE::allowed_disk_usage(double& size) { double percent_space, min_val; - percent_space = host_info.d_total*global_prefs.disk_max_used_pct; + percent_space = host_info.d_total*global_prefs.disk_max_used_pct/100.0; min_val = host_info.d_free - global_prefs.disk_min_free_gb*(1024.*1024.*1024.);