mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-17 21:52:56 +08:00
update 2026-07-15 14:09:58
This commit is contained in:
1 parent
c2d17d02c4
commit
a67d83bfc0
1970 files changed
+107
-1523279
No files matched your search
@@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
arch="$(awk -F ': ' '/model name/ {print $2}' "/proc/cpuinfo" | head -n1)"
|
||||
|
||||
core="$(grep "core id" "/proc/cpuinfo" | sort -u | wc -l)C $(grep -c "processor" "/proc/cpuinfo")T"
|
||||
|
||||
freq="$(awk -F ': ' '/MHz/ {print $2}' "/proc/cpuinfo" | head -n1)MHz"
|
||||
|
||||
# Intel
|
||||
temp="$(sensors "coretemp-*" 2>"/dev/null" | grep -E "(Package id |Core )" | grep -Eo "\+[0-9.]*°C" | head -n1 | tr -d "+")"
|
||||
# AMD
|
||||
[ -n "${temp}" ] || temp="$(sensors "k*temp-*" 2>"/dev/null" | awk '/Tdie/ {print $2}' | head -n1 | tr -d "+")"
|
||||
|
||||
echo -n "$arch x $core ($freq, ${temp})"
|
||||
Reference in new issue
Block a user