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:
Tony Murray
2019-01-10 19:48:37 -06:00
committed by GitHub
parent 4c058ae3b4
commit d277dee14d
21 changed files with 221 additions and 236 deletions

View File

@@ -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));