mirror of
https://github.com/Monibuca/plugin-summary.git
synced 2025-09-26 19:21:18 +08:00
removed network interfaces without data traffic
This commit is contained in:
@@ -158,7 +158,7 @@ func (s *ServerSummary) collect() {
|
||||
s.HardDisk.Usage = d.UsedPercent
|
||||
s.NetWork = make([]NetWorkInfo, 0)
|
||||
for i, n := range nv {
|
||||
if n.BytesRecv == 0 && !isNetAdapter(n.Name) {
|
||||
if n.BytesRecv == 0 || !isNetAdapter(n.Name) {
|
||||
continue
|
||||
}
|
||||
info := NetWorkInfo{}
|
||||
|
Reference in New Issue
Block a user