*** empty log message ***

svn path=/trunk/boinc/; revision=3818
This commit is contained in:
Brian Boshes 2004-07-09 00:14:23 +00:00
parent 8dabbc6240
commit b52aef173a
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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.);