mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
unix.inc.php: correct preg_match() pattern on line 5 (#10999)
This commit is contained in:
committed by
Jellyfrog
parent
0094940283
commit
03b6408e06
@@ -2,7 +2,7 @@
|
||||
|
||||
if (in_array($device['os'], array("linux", "endian", "proxmox", "recoveryos"))) {
|
||||
list(,,$version) = explode(" ", $device['sysDescr']);
|
||||
if (preg_match('[3-6]86', $device['sysDescr'])) {
|
||||
if (preg_match('/[3-6]86/', $device['sysDescr'])) {
|
||||
$hardware = "Generic x86";
|
||||
} elseif (strstr($device['sysDescr'], "x86_64")) {
|
||||
$hardware = "Generic x86 64-bit";
|
||||
|
||||
Reference in New Issue
Block a user