mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Get Outage Data from for the requested Device
This commit is contained in:
@@ -91,8 +91,8 @@ class Availability
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$oldest_date_going_down = $query->first()->value('going_down');
|
$oldest_date_going_down = $query->value('going_down');
|
||||||
$oldest_uptime = $query->first()->value('uptime');
|
$oldest_uptime = $query->value('uptime');
|
||||||
$recorded_duration = $now - ($oldest_date_going_down - $oldest_uptime);
|
$recorded_duration = $now - ($oldest_date_going_down - $oldest_uptime);
|
||||||
|
|
||||||
if ($recorded_duration > $duration) {
|
if ($recorded_duration > $duration) {
|
||||||
|
Reference in New Issue
Block a user