summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/darwin/cpu.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/darwin/cpu.rb')
-rw-r--r--lib/ohai/plugins/darwin/cpu.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/darwin/cpu.rb b/lib/ohai/plugins/darwin/cpu.rb
index a0c90532..d8210c9d 100644
--- a/lib/ohai/plugins/darwin/cpu.rb
+++ b/lib/ohai/plugins/darwin/cpu.rb
@@ -1,7 +1,7 @@
#
# Author:: Nathan L Smith (<nlloyds@gmail.com>)
# Author:: Tim Smith (<tsmith@chef.io>)
-# Copyright:: Copyright (c) 2013-2016 Chef Software, Inc.
+# Copyright:: Copyright (c) 2013-2018 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -22,7 +22,7 @@ Ohai.plugin(:CPU) do
collect_data(:darwin) do
cpu Mash.new
- shell_out("sysctl -a").stdout.lines.each do |line|
+ shell_out("sysctl hw machdep").stdout.lines.each do |line|
case line
when /^hw.packages: (.*)$/
cpu[:real] = Regexp.last_match[1].to_i