mirror of
https://github.com/smxi/inxi.git
synced 2025-01-31 10:02:18 +00:00
another cell try
This commit is contained in:
parent
1871cef434
commit
bacb436798
6
inxi
6
inxi
|
@ -773,9 +773,9 @@ get_cpu_data()
|
||||||
# Therefore PATCH to use [ \t]+ when TESTING!
|
# Therefore PATCH to use [ \t]+ when TESTING!
|
||||||
/^processor\t+:/ { nr = $NF }
|
/^processor\t+:/ { nr = $NF }
|
||||||
|
|
||||||
/^model name/ { cpu[nr, "model"] = $NF }
|
/^model name|^cpu\t+:/ { cpu[nr, "model"] = $NF }
|
||||||
|
|
||||||
/^cpu MHz/ {
|
/^cpu MHz|^clock\t+:/ {
|
||||||
if (!min) {
|
if (!min) {
|
||||||
min = $NF
|
min = $NF
|
||||||
}
|
}
|
||||||
|
@ -786,8 +786,6 @@ get_cpu_data()
|
||||||
if ($NF > max) { max = $NF }
|
if ($NF > max) { max = $NF }
|
||||||
cpu[nr, "speed"] = $NF
|
cpu[nr, "speed"] = $NF
|
||||||
}
|
}
|
||||||
## this is for PS3 only, Cell cpus
|
|
||||||
/^clock/ { cpu[nr, "speed"] = $NF }
|
|
||||||
|
|
||||||
/^cache size/ { cpu[nr, "cache"] = $NF }
|
/^cache size/ { cpu[nr, "cache"] = $NF }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue