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