Skip to content
Snippets Groups Projects
Commit 269289af authored by Tibo's avatar Tibo
Browse files

Compute correct status

parent 452535a3
No related branches found
No related tags found
No related merge requests found
Pipeline #2074 failed
......@@ -72,11 +72,9 @@ class DiskEvolution extends \App\AbstractSensor {
{
foreach ($deltas as $delta) {
$status = self::STATUS_OK;
if ($delta->timeUntillFull == "Not enough messurements") {
$status = self::STATUS_UNKNOWN;
} elseif ($delta->timeUntillFull == "more storage left then last calculation") {
$status = self::STATUS_UNKNOWN;
} elseif ($delta->timeUntillFull < 96) {
if ($delta->timeUntillFull > 0
&& $delta->timeUntillFull < 96) {
$status = self::STATUS_WARNING;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment