Get Outage Data from for the requested Device

This commit is contained in:
SourceDoctor
2020-06-27 17:49:58 +02:00
parent 89cf1d0508
commit 030cd5e9b2

View File

@@ -91,8 +91,8 @@ class Availability
}
}
$oldest_date_going_down = $query->first()->value('going_down');
$oldest_uptime = $query->first()->value('uptime');
$oldest_date_going_down = $query->value('going_down');
$oldest_uptime = $query->value('uptime');
$recorded_duration = $now - ($oldest_date_going_down - $oldest_uptime);
if ($recorded_duration > $duration) {