调整 CPU 温度获取方式

This commit is contained in:
Hyy2001X 2021-04-27 21:26:06 +08:00 committed by GitHub
parent 5bb83b13b9
commit 90381713a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
MHz=$(grep 'MHz' /proc/cpuinfo | awk '{print $4}' | awk 'NR==1')
TEMP=$(sensors 2>/dev/null | grep 'Package id' | awk '{print $4}')
echo "$MHz MHz $TEMP "
TEMP=$(sensors 2>/dev/null | grep 'Core 0' | awk '{print $3}')
echo "$MHz MHz $TEMP "