sysDescr is two lines

This commit is contained in:
Kevin Fleshman
2015-03-09 11:29:35 -07:00
parent ab9c432b36
commit 5c7ee6aad1
+3 -3
View File
@@ -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));
?>