diff --git a/src/sbbs3/tmp_xfer.cpp b/src/sbbs3/tmp_xfer.cpp index b7aa680bca796d6ba63858e5f4f68fd75295b638..a204ec3e3f3815c3743030a0375b0b322ad1be1d 100644 --- a/src/sbbs3/tmp_xfer.cpp +++ b/src/sbbs3/tmp_xfer.cpp @@ -105,10 +105,10 @@ void sbbs_t::temp_xfer() switch(ch) { case 'A': /* add to temp file */ /* free disk space */ - space=getfreediskspace(cfg.temp_dir,0); - if(space<(ulong)cfg.min_dspace*1024L) { + space=getfreediskspace(cfg.temp_dir,1024); + if(space<(ulong)cfg.min_dspace) { bputs(text[LowDiskSpace]); - sprintf(str,"Diskspace is low: %s (%lu bytes)" + sprintf(str,"Diskspace is low: %s (%lu kilobytes)" ,cfg.temp_dir,space); errorlog(str); if(!dir_op(dirnum)) @@ -289,10 +289,10 @@ void sbbs_t::extract(uint dirnum) intmp=1; /* get free disk space */ - space=getfreediskspace(cfg.temp_dir,0); - if(space<(ulong)cfg.min_dspace*1024L) { + space=getfreediskspace(cfg.temp_dir,1024); + if(space<(ulong)cfg.min_dspace) { bputs(text[LowDiskSpace]); - sprintf(str,"Diskspace is low: %s (%lu bytes)",cfg.temp_dir,space); + sprintf(str,"Diskspace is low: %s (%lu kilobytes)",cfg.temp_dir,space); errorlog(str); if(!dir_op(dirnum)) return; }