summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/kernel.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/kernel.rb')
-rw-r--r--lib/ohai/plugins/kernel.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/kernel.rb b/lib/ohai/plugins/kernel.rb
index 4e85bdf4..95d38d4d 100644
--- a/lib/ohai/plugins/kernel.rb
+++ b/lib/ohai/plugins/kernel.rb
@@ -238,7 +238,7 @@ Ohai.plugin(:Kernel) do
# 6 1180000 4623 1 1 specfs (filesystem for specfs)
module_description = /[\s]*([\d]+)[\s]+([a-f\d]+)[\s]+([a-f\d]+)[\s]+(?:[\-\d]+)[\s]+(?:[\d]+)[\s]+([\S]+)[\s]+\((.+)\)$/
so.stdout.lines do |line|
- if mod = module_description.match(line)
+ if ( mod = module_description.match(line) )
modules[mod[4]] = { :id => mod[1].to_i, :loadaddr => mod[2], :size => mod[3].to_i(16), :description => mod[5] }
end
end