lib/perus/pinger/metrics/temp.rb in perus-0.1.3 vs lib/perus/pinger/metrics/temp.rb in perus-0.1.4
- old
+ new
@@ -7,10 +7,10 @@
def run
if darwin?
degrees = shell('istats cpu temp').split[2].match(/([0-9\.]+)/)[0]
else
- degrees = shell(%q[sensors | grep "#{options.device}:"]).match(/#{options.device}:\s+(\S+)/)[1]
+ degrees = shell(%Q[sensors | grep "#{options.device}:"]).match(/#{options.device}:\s+(\S+)/)[1]
end
{temp: degrees.to_f}
end
end