mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sanity check the in/out_delta value, if it's out of the range of the
ifSpeed then we use the previous value
This commit is contained in:
@@ -131,8 +131,8 @@ foreach (dbFetch('SELECT *, UNIX_TIMESTAMP(timestamp) AS formatted_date FROM bil
|
||||
$period = $row['period'];
|
||||
$in_delta = $row['in_delta'];
|
||||
$out_delta = $row['out_delta'];
|
||||
$in_value = round(($in_delta * 8 / $period), 2);
|
||||
$out_value = round(($out_delta * 8 / $period), 2);
|
||||
$in_value = delta_to_bits($in_delta, $period);
|
||||
$out_value = delta_to_bits($out_delta, $period);;
|
||||
|
||||
$last = $timestamp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user