fix: Fixed system temperature from ipmi descr including a space at the end

based on @laf's help, this issue was resolved.
This commit is contained in:
Svennd
2017-02-03 13:49:22 +01:00
committed by Neil Lathwood
parent d4e8c54516
commit 5733fb27fa

View File

@ -22,6 +22,7 @@ if (is_array($ipmi_rows)) {
foreach (explode("\n", $results) as $row) {
list($desc, $value, $type, $status) = explode(',', $row);
$desc = trim($desc, ' ');
$ipmi_sensor[$desc][$config['ipmi_unit'][$type]]['value'] = $value;
$ipmi_sensor[$desc][$config['ipmi_unit'][$type]]['unit'] = $type;
}