Completed mbtask new disk watcher
This commit is contained in:
@@ -1085,7 +1085,7 @@ TrType binkp_receiver(void)
|
||||
gettimeofday(&rxtvstart, &bp.tz);
|
||||
bp.rxpos = bp.roffs;
|
||||
|
||||
if (!diskfree(CFG.freespace)) {
|
||||
if (enoughspace(CFG.freespace) == 0) {
|
||||
Syslog('+', "Binkp: low diskspace, sending BSY");
|
||||
binkp_send_command(MM_BSY, "Low diskspace, try again later");
|
||||
bp.RxState = RxDone;
|
||||
|
@@ -346,8 +346,10 @@ int main(int argc, char *argv[])
|
||||
/*
|
||||
* Don't do outbound calls if low diskspace
|
||||
*/
|
||||
if (!diskfree(CFG.freespace))
|
||||
if (enoughspace(CFG.freespace) == 0) {
|
||||
WriteError("Low diskspace, abort");
|
||||
die(MBERR_DISK_FULL);
|
||||
}
|
||||
|
||||
if (addr == NULL) {
|
||||
WriteError("Calling mbcico without node address not supported anymore");
|
||||
|
Reference in New Issue
Block a user