8 lines
101 B
Plaintext
8 lines
101 B
Plaintext
|
#!/usr/bin/env python
|
||
|
|
||
|
import psutil
|
||
|
|
||
|
usage = psutil.cpu_percent(interval=1)
|
||
|
|
||
|
print(f" {usage}%")
|