diff --git a/src/Audit/StorageSpace.php b/src/Audit/StorageSpace.php index 2e3baba..62ddf1d 100644 --- a/src/Audit/StorageSpace.php +++ b/src/Audit/StorageSpace.php @@ -84,15 +84,15 @@ public function audit(Sandbox $sandbox) { } //end for if (count($storage_warnings)) { - $msg = "The following filesystems are bellow or euqal to the threshold ({$threshold}%)." . PHP_EOL; + $msg = "The following filesystems are bellow or equal to the threshold ({$threshold}%)." . PHP_EOL; foreach ($storage_warnings as $item) { $msg .= $item . PHP_EOL; } - $sandbox->setParameter('warning_message', $msg); - return Audit::WARNING; + $sandbox->setParameter('status', $msg); + return Audit::FAILURE; } - $sandbox->setParameter('status', "All filestystems have free space above threshhold ({$threshold}%)."); + $sandbox->setParameter('status', "All filestystems have free space above threshold ({$threshold}%)."); return Audit::SUCCESS; } }