diff options
author | jim-p <jimp@pfsense.org> | 2013-08-30 13:35:48 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-08-30 13:37:42 -0400 |
commit | b097a7cfa9f42d513823f0db7f047684faf8fe28 (patch) | |
tree | 779fe4b0f530d75e3ecf94e1f5101f712c8f4446 /usr/local/www/widgets | |
parent | beb7cd97eb496e2d1f1e933344566e8e1927378f (diff) | |
download | pfsense-b097a7cfa9f42d513823f0db7f047684faf8fe28.zip pfsense-b097a7cfa9f42d513823f0db7f047684faf8fe28.tar.gz |
Show a count of the CPUs if more than one is detected, and show how those CPUs are supplied by the hardware.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index 398fc47..c2cf67a 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -165,6 +165,11 @@ $curcfg = $config['system']['firmware']; echo (htmlspecialchars($cpumodel)); ?> <div id="cpufreq"><?= get_cpufreq(); ?></div> + <?php $cpucount = get_cpu_count(); + if ($cpucount > 1): ?> + <div id="cpucount"> + <?= htmlspecialchars($cpucount) ?> CPUs: <?= htmlspecialchars(get_cpu_count(true)); ?></div> + <?php endif; ?> </td> </tr> <?php if ($hwcrypto): ?> |