mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
sysDescr is two lines
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
# Version is the last word in the sysDescr
|
||||
$version = substr($poll_device['sysDescr'], strrpos($poll_device['sysDescr'], ' ') + 1);
|
||||
|
||||
# Version is the last word in the sysDescr's first line
|
||||
list($version) = explode("\r", substr($poll_device['sysDescr'], strpos($poll_device['sysDescr'], "Release")+8));
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user