feat: display cpu model (#477)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-23 12:03:10 +08:00
committed by GitHub
parent 41ec46f1d3
commit 87b3b76b0b
4 changed files with 58 additions and 17 deletions

View File

@@ -192,6 +192,7 @@ enum StatusCmdType {
'for f in /sys/class/power_supply/*/uevent; do cat "\$f"; echo; done'),
nvidia._('nvidia-smi -q -x'),
sensors._('sensors'),
cpuBrand._('cat /proc/cpuinfo | grep "model name"'),
;
final String cmd;
@@ -210,6 +211,7 @@ enum BSDStatusCmdType {
mem._('top -l 1 | grep PhysMem'),
//temp,
host._('hostname'),
cpuBrand._('sysctl -n machdep.cpu.brand_string'),
;
final String cmd;