diff --git a/Source/Processors/RecordNode/RecordNode.cpp b/Source/Processors/RecordNode/RecordNode.cpp index 9f94a1a67..8f4a556e4 100755 --- a/Source/Processors/RecordNode/RecordNode.cpp +++ b/Source/Processors/RecordNode/RecordNode.cpp @@ -158,7 +158,7 @@ void RecordNode::parameterValueChanged(Parameter* p) void RecordNode::checkDiskSpace() { - float diskSpaceWarningThreshold = 95; //GB + float diskSpaceWarningThreshold = 5; //GB File dataDir(dataDirectory); int64 freeSpace = dataDir.getBytesFreeOnVolume(); @@ -167,14 +167,9 @@ void RecordNode::checkDiskSpace() if (availableBytes < diskSpaceWarningThreshold && !isRecording) { - if (directoryChangedSinceLastWarning) - { - String msg = "Less than " + String(int(diskSpaceWarningThreshold)) + " GB of disk space available in " + String(dataDirectory.getFullPathName()); - msg += ". Recording may fail. Please free up space or change the recording directory."; - AlertWindow::showMessageBoxAsync(AlertWindow::WarningIcon, "WARNING", msg); - - directoryChangedSinceLastWarning = false; - } + String msg = "Less than " + String(int(diskSpaceWarningThreshold)) + " GB of disk space available in " + String(dataDirectory.getFullPathName()); + msg += ". Recording may fail. Please free up space or change the recording directory."; + AlertWindow::showMessageBoxAsync(AlertWindow::WarningIcon, "WARNING", msg); } } @@ -399,8 +394,6 @@ void RecordNode::setDataDirectory(File directory) dataDirectory = directory; newDirectoryNeeded = true; - directoryChangedSinceLastWarning = true; - checkDiskSpace(); }