diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2015-03-11 18:49:31 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2015-03-11 18:49:31 +0100 |
| commit | a7119803c420373903ac289eb44fc01b64a58ef7 (patch) | |
| tree | c6650d43801d436f2a65909ad8fecc5dd336f523 /py3status/modules/netdata.py | |
| parent | 6aefd207ecf8df4a8a594b47f9e27a7e0a26e3c4 (diff) | |
normalize module direct testing with a proper config
Diffstat (limited to 'py3status/modules/netdata.py')
| -rw-r--r-- | py3status/modules/netdata.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/py3status/modules/netdata.py b/py3status/modules/netdata.py index fc5e60c..fe9406f 100644 --- a/py3status/modules/netdata.py +++ b/py3status/modules/netdata.py @@ -51,7 +51,7 @@ class Py3status: low_traffic = 400 med_speed = 60 med_traffic = 700 - nic = 'eth0' + nic = 'wlp2s0' def __init__(self): self.old_transmitted = 0 @@ -119,7 +119,11 @@ if __name__ == "__main__": """ from time import sleep x = Py3status() + config = { + 'color_good': '#00FF00', + 'color_bad': '#FF0000', + } while True: - print(x.net_speed([], {})) - print(x.net_traffic([], {})) + print(x.net_speed([], config)) + print(x.net_traffic([], config)) sleep(1) |
