summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-08-30 13:35:48 -0400
committerjim-p <jimp@pfsense.org>2013-08-30 13:37:42 -0400
commitb097a7cfa9f42d513823f0db7f047684faf8fe28 (patch)
tree779fe4b0f530d75e3ecf94e1f5101f712c8f4446 /usr/local/www/widgets
parentbeb7cd97eb496e2d1f1e933344566e8e1927378f (diff)
downloadpfsense-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.php5
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): ?>
OpenPOWER on IntegriCloud