mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added Packetlight PL2000 support (#11782)
convert Watts to Dbm and call user_function on limits dbm graphs summary pl1000eTests update Tests OK
This commit is contained in:
@@ -1068,6 +1068,9 @@ function discovery_process(&$valid, $device, $sensor_class, $pre_cache)
|
||||
if (is_numeric($$limit)) {
|
||||
$$limit = ($$limit / $divisor) * $multiplier;
|
||||
}
|
||||
if (is_numeric($$limit) && isset($user_function) && is_callable($user_function)) {
|
||||
$$limit = $user_function($$limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user