Commit 47eebdc2 authored by rswindell's avatar rswindell
Browse files

Low disk space error now logs amount of free disk space (at the time).

parent ce36aaf4
......@@ -107,7 +107,8 @@ void sbbs_t::temp_xfer()
space=getfreediskspace(cfg.temp_dir);
if(space<(ulong)cfg.min_dspace*1024L) {
bputs(text[LowDiskSpace]);
sprintf(str,"Diskspace is low: %s",cfg.temp_dir);
sprintf(str,"Diskspace is low: %s (%lu bytes)"
,cfg.temp_dir,space);
errorlog(str);
if(!dir_op(dirnum))
break; }
......@@ -290,7 +291,7 @@ void sbbs_t::extract(uint dirnum)
space=getfreediskspace(cfg.temp_dir);
if(space<(ulong)cfg.min_dspace*1024L) {
bputs(text[LowDiskSpace]);
sprintf(str,"Diskspace is low: %s",cfg.temp_dir);
sprintf(str,"Diskspace is low: %s (%lu bytes)",cfg.temp_dir,space);
errorlog(str);
if(!dir_op(dirnum))
return; }
......
......@@ -272,7 +272,7 @@ void sbbs_t::upload(uint dirnum)
space=getfreediskspace(path);
if(space<(ulong)cfg.min_dspace*1024L) {
bputs(text[LowDiskSpace]);
sprintf(str,"Diskspace is low: %s",path);
sprintf(str,"Diskspace is low: %s (%lu bytes)",path,space);
errorlog(str);
if(!dir_op(dirnum))
return; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment