Disk and CPU usage

PHOTO EMBED

Thu Mar 18 2021 09:36:16 GMT+0000 (Coordinated Universal Time)

Saved by @FlorianC #python

import shutil
import psutil

du = shutil.disk_usage("/")
du.free/du.total*100

psutil.cpu_percent(.1)
content_copyCOPY