projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08b84ae
)
Show CPU cores
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 27 Nov 2008 07:49:36 +0000
(07:49 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 27 Nov 2008 07:49:36 +0000
(07:49 +0000)
proc/index_cpu.cgi
patch
|
blob
|
history
diff --git
a/proc/index_cpu.cgi
b/proc/index_cpu.cgi
index
7862697
..
683bdaf
100755
(executable)
--- a/
proc/index_cpu.cgi
+++ b/
proc/index_cpu.cgi
@@
-16,7
+16,14
@@
if (defined(&get_cpu_info)) {
"</td> </tr>\n";
if (@c >= 5) {
print "<tr> <td><b>$text{'index_cpuname'}</b></td>\n";
- print "<td>$c[4] ($c[3] MHz)</td> </tr>\n";
+ print "<td>$c[4]\n";
+ if ($c[4] !~ /Hz/) {
+ print "($c[3] MHz)\n";
+ }
+ if ($c[7]) {
+ print ", $c[7] cores\n";
+ }
+ print "</td> </tr>\n";
}
}
print "</table><br>\n";