From 4ee0b6f1f4ba1103f316ac898cd59c62ce7f47be Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 9 Jun 2015 20:07:32 +0100 Subject: [PATCH] Alter Windows CPU descr when unknown --- includes/discovery/processors/hrdevice.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/discovery/processors/hrdevice.inc.php b/includes/discovery/processors/hrdevice.inc.php index 69eec7ce13..a8c83c79f9 100644 --- a/includes/discovery/processors/hrdevice.inc.php +++ b/includes/discovery/processors/hrdevice.inc.php @@ -31,6 +31,10 @@ if (is_array($hrDevice_array)) if ($device['os'] == "engenius" && empty($entry['hrDeviceDescr'])) { $descr = "Processor"; } // Workaround to set fake description for Ubiquiti EdgeOS who don't populate hrDeviceDescr if ($device['os'] == "edgeos" && empty($entry['hrDeviceDescr'])) { $descr = "Processor"; } + // Workaround to set fake description for Windows who use Unknown Processor Type + if ($device['os'] == "windows" && $entry['hrDeviceDescr'] == "Unknown Processor Type") { + $descr = "Processor"; + } $descr = str_replace("CPU ", "", $descr); $descr = str_replace("(TM)", "", $descr);