[modules/traffic] Minor refactoring
* use psutil instead of "ifconfig" in order to avoid external command calls * fix a small bug in the ascii theme (missing colon) * show statistics per-nic
This commit is contained in:
parent
16359c883b
commit
430c9f5e93
3 changed files with 50 additions and 52 deletions
|
@ -62,9 +62,9 @@
|
|||
},
|
||||
"sensors": {
|
||||
"prefix": "sensors"
|
||||
}
|
||||
},
|
||||
"traffic": {
|
||||
"down": { "prefix": "down"},
|
||||
"up": {"prefix": "up"}
|
||||
"rx": { "prefix": "down"},
|
||||
"tx": {"prefix": "up"}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
"prefix": "🌡"
|
||||
},
|
||||
"traffic":{
|
||||
"down": { "prefix": "" },
|
||||
"up": { "prefix": "" }
|
||||
"rx": { "prefix": "" },
|
||||
"tx": { "prefix": "" }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue