forked from j62/ctbrec
1
0
Fork 0

Don't do space check, if minimum is set to 0

This commit is contained in:
0xboobface 2018-11-30 14:51:17 +01:00
parent 76657e2b92
commit ad1f841167
1 changed files with 5 additions and 1 deletions

View File

@ -787,6 +787,10 @@ public class LocalRecorder implements Recorder {
private boolean enoughSpaceForRecording() throws IOException { private boolean enoughSpaceForRecording() throws IOException {
long minimum = config.getSettings().minimumSpaceLeftInBytes; long minimum = config.getSettings().minimumSpaceLeftInBytes;
return getFreeSpaceBytes() > minimum; if(minimum == 0) { // 0 means don't check
return true;
} else {
return getFreeSpaceBytes() > minimum;
}
} }
} }