mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-11 09:11:01 +08:00
updated scripts, added configs, new screenshot
Former-commit-id: 80e5a611d9
Former-commit-id: d6d963dd470140b7a955399ff22fec885ddace30
This commit is contained in:
parent
b633e81511
commit
e43cf1ccde
437 changed files with 46670 additions and 22 deletions
|
|
@ -1,3 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
CPU="$[100-$(vmstat 1 2|tail -1|awk '{printf "%d", $15}')]"
|
||||
echo " $CPU%"
|
||||
GOVERNOR="$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)"
|
||||
|
||||
if [[ "$GOVERNOR" == "performance" ]]; then
|
||||
echo " $CPU%"
|
||||
else
|
||||
echo " $CPU%"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue