diff options
author | jim-p <jimp@pfsense.org> | 2017-05-15 15:20:07 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-05-15 15:20:07 -0400 |
commit | 38a47119a5c25b4aaaeb25109a84698217f7d5a7 (patch) | |
tree | cf936b5103d1bf0ee0612e7476b27fdd49e64a39 | |
parent | ae764da6ef91f0e9f440d423dfbdb72f44b33276 (diff) | |
download | pfsense-38a47119a5c25b4aaaeb25109a84698217f7d5a7.zip pfsense-38a47119a5c25b4aaaeb25109a84698217f7d5a7.tar.gz |
Small adjustment to dmesg parsing for CPU package/core count.
-rw-r--r-- | src/usr/local/www/includes/functions.inc.php | 2 |
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; |