Fix long CPU name on AMD

This commit is contained in:
GaugeK committed 2020-08-09 01:56:06 +10:00
1 parent 5b910d87a5
commit 7c5b1ca755
1 file changed
+3 -1
+3 -1
View File
@@ -50,8 +50,10 @@ vendor="${vendor##*Authentic}"
vendor="${vendor##*Genuine}"
cpu="${cpu##*) }"
cpu="${cpu%% @*}"
cpu="${cpu##CPU }"
cpu="${cpu%% CPU}"
cpu="${cpu##CPU }"
cpu="${cpu##*AMD }"
cpu="${cpu%% with*}"
## Uptime
# the simple math is shamefully stolen from aosync