fix: mikrotik cpu detection (#5306)

This commit is contained in:
David Bell
2017-01-04 11:26:02 +00:00
committed by Neil Lathwood
parent c3d678b112
commit 82579fbb04

View File

@@ -33,7 +33,7 @@ if (is_array($hrDevice_array)) {
}
// Workaround to set fake description for Mikrotik who don't populate hrDeviceDescr
if ($device['os'] == 'routeros' && !isset($entry['hrDeviceDescr'])) {
if ($device['os'] == 'routeros' && (!isset($entry['hrDeviceDescr']) || empty($entry['hrDeviceDescr']))) {
$descr = 'Processor';
}