mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix some issues with sensor limits (#9638)
* Fix Zynos temp warn limit And others, but this seems to be the only one that uses remove some odd limit restriction in the poller * More consistent rounding for sensor limits * round all numeric limits to 10 digits * update test data * Remove complex calculation as negative limit values are already swapped as needed.
This commit is contained in:
@@ -192,17 +192,6 @@ function delete_port($int_id)
|
||||
unlink(get_port_rrdfile_path($interface['hostname'], $interface['port_id']));
|
||||
}
|
||||
|
||||
function sgn($int)
|
||||
{
|
||||
if ($int < 0) {
|
||||
return -1;
|
||||
} elseif ($int == 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
function get_sensor_rrd($device, $sensor)
|
||||
{
|
||||
return rrd_name($device['hostname'], get_sensor_rrd_name($device, $sensor));
|
||||
|
Reference in New Issue
Block a user