summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-05-15 15:20:07 -0400
committerjim-p <jimp@pfsense.org>2017-05-15 15:20:07 -0400
commit38a47119a5c25b4aaaeb25109a84698217f7d5a7 (patch)
treecf936b5103d1bf0ee0612e7476b27fdd49e64a39 /src
parentae764da6ef91f0e9f440d423dfbdb72f44b33276 (diff)
downloadpfsense-38a47119a5c25b4aaaeb25109a84698217f7d5a7.zip
pfsense-38a47119a5c25b4aaaeb25109a84698217f7d5a7.tar.gz
Small adjustment to dmesg parsing for CPU package/core count.
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/includes/functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/includes/functions.inc.php b/src/usr/local/www/includes/functions.inc.php
index 8ee4c08..5e3c442 100644
--- a/src/usr/local/www/includes/functions.inc.php
+++ b/src/usr/local/www/includes/functions.inc.php
@@ -276,7 +276,7 @@ function get_cpu_count($show_detail = false) {
if ($show_detail) {
$cpudetail = "";
- exec("/usr/bin/grep 'SMP.*package.*core' /var/log/dmesg.boot | /usr/bin/cut -f2- -d' '", $cpudetail);
+ exec("/usr/bin/grep 'FreeBSD/SMP:.*package' /var/log/dmesg.boot | /usr/bin/cut -f2- -d' '", $cpudetail);
$cpucount = $cpudetail[0];
}
return $cpucount;
OpenPOWER on IntegriCloud