mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Only Show in TopInterfaces Devices which are up (#11578)
* Only Show in TopInterfaces Devices which are up * change to macro
This commit is contained in:
@@ -55,6 +55,7 @@ class TopInterfacesController extends WidgetController
|
||||
->select('port_id', 'device_id', 'ifName', 'ifDescr', 'ifAlias')
|
||||
->groupBy('port_id', 'device_id', 'ifName', 'ifDescr', 'ifAlias')
|
||||
->where('poll_time', '>', Carbon::now()->subMinutes($data['time_interval'])->timestamp)
|
||||
->isUp()
|
||||
->when($data['device_group'], function ($query) use ($data) {
|
||||
$query->inDeviceGroup($data['device_group']);
|
||||
}, function ($query) {
|
||||
|
Reference in New Issue
Block a user