lib/perus/pinger/metrics/temp.rb in perus-1.0.5 vs lib/perus/pinger/metrics/temp.rb in perus-1.0.6
- old
+ new
@@ -1,9 +1,9 @@
module Perus::Pinger
class Temp < Command
description 'Measures the temperature of "device" on the client. By
default, this will be a CPU.'
- option :device, default: 'Physical id 0'
+ option :device, default: 'Package id 0'
metric!
def run
if darwin?
degrees = shell('istats cpu temp').split[2].match(/([0-9\.]+)/)[0]