Commit 269289af authored by Tibo's avatar Tibo

Compute correct status

parent 452535a3
Pipeline #2074 failed with stage
in 37 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment