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:
Adam Amstrong
2011-04-28 13:06:39 +00:00
parent 82f5c9a35e
commit 04f5389e77
3 changed files with 151 additions and 2 deletions

View File

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