mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
ensure returned values do not exceed max of RRD file (#497)
This commit is contained in:
@@ -158,6 +158,8 @@ if (!isset($called_by_script_server)) {
|
||||
$output[] = $item;
|
||||
}
|
||||
list($short, $val) = explode(":", $item);
|
||||
# ensure returned values do not exceed max limits in RRD
|
||||
$val = $val % ( 124999999999 + 1 );
|
||||
echo(strtolower($short).":".strtolower($val)."\n");
|
||||
}
|
||||
debug(array("Final result", $output));
|
||||
|
Reference in New Issue
Block a user