diff --git a/src/components/SidePanel/StartStop.tsx b/src/components/SidePanel/StartStop.tsx index 0224627b..45aa863e 100644 --- a/src/components/SidePanel/StartStop.tsx +++ b/src/components/SidePanel/StartStop.tsx @@ -92,19 +92,21 @@ export default () => { samplesPerSecond: DataManager().getSamplesPerSecond(), }); - const space = Math.max( - 0, - await getFreeSpace(diskFullTrigger, sessionFolder) - ); + if (mode === 'DataLogger') { + const space = Math.max( + 0, + await getFreeSpace(diskFullTrigger, sessionFolder) + ); - setFreeSpace(space); + setFreeSpace(space); - if (space === 0) { - logger.warn( - 'Disk is full. Unable to start sampling. Change the disk full trigger threshold or free up disk memory.' - ); - setShowDialog(false); - return; + if (space === 0) { + logger.warn( + 'Disk is full. Unable to start sampling. Change the disk full trigger threshold or free up disk memory.' + ); + setShowDialog(false); + return; + } } setShowDialog(false);