right_webmin=Webmin version
right_usermin=Usermin Version
right_cpu=CPU load averages
+right_cpuinfo=Processor information
+right_cputype=$5, $8 cores
right_load=$1 (1 min) $2 (5 mins) $3 (15 mins)
right_real=Real memory
right_virt=Virtual memory
$info->{'kernel'}->{'arch'}),"</td> </tr>\n";
}
+ # CPU type and cores
+ if ($info->{'load'}) {
+ @c = @{$info->{'load'}};
+ if (@c > 3) {
+ print "<tr> <td><b>$text{'right_cpuinfo'}</b></td>\n";
+ print "<td>",&text('right_cputype', @c),"</td> </tr>\n";
+ }
+ }
+
# System uptime
&foreign_require("proc");
my $uptime;
}
# get_cpu_info()
-# Returns a list containing the 5, 10 and 15 minute load averages
+# Returns a list containing the 5, 10 and 15 minute load averages, and possibly
+# the CPU mhz, model, vendor, cache and count
sub get_cpu_info
{
if (defined(&os_get_cpu_info)) {