Fix global service count showing on device overview (#10301)

This commit is contained in:
Tony Murray
2019-06-03 19:14:35 -05:00
committed by GitHub
parent 437a577dba
commit 6f6e8e9f1c
2 changed files with 9 additions and 7 deletions

View File

@@ -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">