Skip to content
Snippets Groups Projects
Commit d9d3a173 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

file_area.min_diskspace is in bytes now, not kilobytes - so deal

parent a75bdd4e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -34,14 +34,14 @@ function checkfname(spec) ...@@ -34,14 +34,14 @@ function checkfname(spec)
function checkspace() function checkspace()
{ {
var space = dir_freespace(system.temp_dir, 1024); var space = dir_freespace(system.temp_dir);
if(space < file_area.min_diskspace) { if(space < file_area.min_diskspace) {
console.putmsg(bbs.text(LowDiskSpace)); console.putmsg(bbs.text(LowDiskSpace));
log(LOG_ERR, format("Disk space is low: %s (%lu kilobytes)", system.temp_dir, space)); log(LOG_ERR, format("Disk space is low: %s (%s bytes)", system.temp_dir, file_size_float(space, 1, 1)));
return false; return false;
} }
console.putmsg(format(bbs.text(DiskNBytesFree), file_size_float(space, 1024, 1))); console.putmsg(format(bbs.text(DiskNBytesFree), file_size_float(space, 1, 1)));
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment