lib/perus/pinger/metrics/uptime.rb in perus-0.1.2 vs lib/perus/pinger/metrics/uptime.rb in perus-0.1.3
- old
+ new
@@ -2,9 +2,9 @@
class Uptime < Command
description 'Runs the uptime command and returns the result'
metric!
def run
- {uptime: `uptime`.strip}
+ {uptime: shell('uptime').strip}
end
end
end