Commit 0dc9fc0d authored by Tibo's avatar Tibo

Fix

parent bbd84a07
Pipeline #2096 failed with stage
in 49 seconds
......@@ -14,7 +14,13 @@ class DiskEvolution extends \App\AbstractSensor
public function computeEvolution(array $newAndOld, int $timeDifference) : array
{
$deltas = [];
foreach ($newAndOld[0] as $key => $partition) {
if (!isset($newAndOld[1][$key])) {
continue;
}
$delta = new Delta();
$delta->filesystem = $partition->filesystem;
$delta->delta = $partition->used - $newAndOld[1][$key]->used;
......
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