We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cfc8b7 commit 03d5955Copy full SHA for 03d5955
examples/ssd1306_stats.py
@@ -65,7 +65,7 @@
65
# https://unix.stackexchange.com/questions/119126/command-to-display-memory-usage-disk-usage-and-cpu-load
66
cmd = "hostname -I | cut -d' ' -f1"
67
IP = subprocess.check_output(cmd, shell=True).decode("utf-8")
68
- cmd = "cut -f 1 -d \" \" /proc/loadavg"
+ cmd = 'cut -f 1 -d " " /proc/loadavg'
69
CPU = subprocess.check_output(cmd, shell=True).decode("utf-8")
70
cmd = "free -m | awk 'NR==2{printf \"Mem: %s/%s MB %.2f%%\", $3,$2,$3*100/$2 }'"
71
MemUsage = subprocess.check_output(cmd, shell=True).decode("utf-8")
0 commit comments