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:
@@ -1534,3 +1534,7 @@ function create_sensor_to_state_index($device, $state_name, $index)
|
||||
dbInsert($insert, 'sensors_to_state_indexes');
|
||||
}
|
||||
}
|
||||
|
||||
function delta_to_bits($delta,$period) {
|
||||
return round(($_delta * 8 / $period), 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user