mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
correctly calculate limits for negative voltage sensors
git-svn-id: http://www.observium.org/svn/observer/trunk@2192 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -2,6 +2,15 @@
|
||||
|
||||
## Common Functions
|
||||
|
||||
function sgn($int){
|
||||
if($int < 0)
|
||||
return -1;
|
||||
elseif($int == 0)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
function get_sensor_rrd($device, $sensor)
|
||||
{
|
||||
global $config;
|
||||
|
Reference in New Issue
Block a user