From da80d813e85fcb05c7eb9971178f7da51ac23f3c Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sat, 20 Jun 2015 22:35:32 +0200 Subject: New: Show cumulated operating time for devices --- lib/postrunner/DeviceList.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/postrunner/DeviceList.rb b/lib/postrunner/DeviceList.rb index 6ab63f2..4b1a12e 100644 --- a/lib/postrunner/DeviceList.rb +++ b/lib/postrunner/DeviceList.rb @@ -18,6 +18,8 @@ module PostRunner class DeviceList + include Fit4Ruby::Converters + def initialize(fit_activity) @fit_activity = fit_activity end @@ -87,6 +89,11 @@ module PostRunner t.cell(device.battery_status) t.new_row end + if device.cum_operating_time + t.cell('Cumulated Operating Time:') + t.cell(secsToDHMS(device.cum_operating_time)) + t.new_row + end seen_indexes << device.device_index end -- cgit v1.2.3