From cbcbd60b3633d014051214a6027d4375f8098f3e Mon Sep 17 00:00:00 2001 From: medengineer Date: Mon, 27 Nov 2023 16:37:08 -0800 Subject: [PATCH] Revert "Fix RecordNode disk space warning behavior" This reverts commit 43507b0c11f09cd9965903db2fc8b681185b8f82. --- Source/Processors/RecordNode/RecordNode.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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(); }