mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed negative values for storage: http://munin-monitoring.org/ticket/1371
This commit is contained in:
@@ -1201,3 +1201,12 @@ function first_oid_match($device, $list) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function fix_integer_value($value) {
|
||||
if ($value < 0) {
|
||||
$return = 4294967296+$value;
|
||||
} else {
|
||||
$return = $value;
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user