mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix global service count showing on device overview (#10301)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
use LibreNMS\Util\ObjectCache;
|
||||
|
||||
if (ObjectCache::serviceCounts()['total'] > 0) {
|
||||
if (ObjectCache::serviceCounts(['total'], $device['device_id'])['total'] > 0) {
|
||||
// Build the string.
|
||||
$break = '';
|
||||
$output = '';
|
||||
@@ -24,7 +24,7 @@ if (ObjectCache::serviceCounts()['total'] > 0) {
|
||||
$break = ', ';
|
||||
}
|
||||
|
||||
$services = ObjectCache::serviceCounts(['total', 'ok', 'warning', 'critical']);
|
||||
$services = ObjectCache::serviceCounts(['total', 'ok', 'warning', 'critical'], $device['device_id']);
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
Reference in New Issue
Block a user