mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
show never polled information (#15341)
This commit is contained in:
@@ -221,7 +221,12 @@ class AvailabilityMapController extends WidgetController
|
||||
private function getDeviceTooltip(Device $device, string $state_name): string
|
||||
{
|
||||
$tooltip = $device->displayName();
|
||||
$time = $device->formatDownUptime(true);
|
||||
|
||||
if (! $device->status && ! $device->last_polled) {
|
||||
$time = __('Never polled');
|
||||
} else {
|
||||
$time = $device->formatDownUptime(true);
|
||||
}
|
||||
|
||||
if ($time) {
|
||||
$tooltip .= ' - ' . ($state_name == 'down' ? 'downtime ' : '') . $time;
|
||||
|
||||
Reference in New Issue
Block a user