mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Calculate downtime from device_outages table (#15397)
* Calculate downtime from device_outages table * refactor
This commit is contained in:
@@ -182,7 +182,7 @@ class ConnectivityHelper
|
||||
}
|
||||
|
||||
// check for open outage
|
||||
$open_outage = $this->device->outages()->whereNull('up_again')->orderBy('going_down', 'desc')->first();
|
||||
$open_outage = $this->device->getCurrentOutage();
|
||||
|
||||
if ($status) {
|
||||
if ($open_outage) {
|
||||
|
Reference in New Issue
Block a user