summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShahul Hameed <skhajamohid1@bloomberg.net>2015-07-30 15:54:39 -0400
committerShahul Hameed <skhajamohid1@bloomberg.net>2015-07-30 15:54:39 -0400
commite1bd25cdde33dbbda6bc6f0671448fbdf3f208a4 (patch)
tree399630daca6316d11f0ccad196e6afa368c1bac9
parent8817490aea71b714fa8c8f5ef620b01b71efa7e0 (diff)
downloadohai-e1bd25cdde33dbbda6bc6f0671448fbdf3f208a4.tar.gz
Fix memory plugin on solaris
-rw-r--r--lib/ohai/plugins/solaris2/memory.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ohai/plugins/solaris2/memory.rb b/lib/ohai/plugins/solaris2/memory.rb
index 0b8ec0c7..b493d73b 100644
--- a/lib/ohai/plugins/solaris2/memory.rb
+++ b/lib/ohai/plugins/solaris2/memory.rb
@@ -19,6 +19,7 @@ Ohai.plugin(:Memory) do
collect_data(:solaris2) do
memory Mash.new
- memory[:total] = shell_out("prtconf -m").stdout.to_i
+ meminfo = shell_out("prtconf | grep Memory").stdout
+ memory[:total] = meminfo.split[2].to_i
end
end