Skip to content

Commit

Permalink
Distill gsub.split to split on \s+
Browse files Browse the repository at this point in the history
  • Loading branch information
cachamber committed Aug 25, 2015
1 parent 45a25ac commit b13498e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ohai/plugins/solaris2/cpu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
cpu["total"] += 1
currentcpu = instance
end
kv = keyvalue.gsub(/\s+/,"=").split(/=/)
kv = keyvalue.split(/\s+/)
key = kv.shift
value = kv.join(" ").chomp
case key
Expand Down

0 comments on commit b13498e

Please sign in to comment.