From 3c8dcbb142f5793cc69e2a7a473a5121f92f1000 Mon Sep 17 00:00:00 2001 From: macos <tengyue.li@100credit.com> Date: Fri, 17 Apr 2020 15:58:43 +0800 Subject: [PATCH] windows update --- clients/client-psutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/client-psutil.py b/clients/client-psutil.py index 0fd8dd8..e339fb8 100755 --- a/clients/client-psutil.py +++ b/clients/client-psutil.py @@ -171,7 +171,7 @@ def _net_speed(): while True: avgrx = 0 avgtx = 0 - for name, stats in psutil.net_io_counters(pernic=True).iteritems(): + for name, stats in psutil.net_io_counters(pernic=True).items(): if "lo" in name or "tun" in name \ or "docker" in name or "veth" in name \ or "br-" in name or "vmbr" in name \