summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-06-20 22:35:32 +0200
committerChris Schlaeger <chris@linux.com>2015-06-20 22:35:32 +0200
commitda80d813e85fcb05c7eb9971178f7da51ac23f3c (patch)
tree3407962432a1b27b5c913fefcb39934b7a979d59
parent88e1f74afee93c19f889ce8254f305a1f0ecf664 (diff)
downloadpostrunner-da80d813e85fcb05c7eb9971178f7da51ac23f3c.zip
New: Show cumulated operating time for devices
-rw-r--r--lib/postrunner/DeviceList.rb7
1 files changed, 7 insertions, 0 deletions
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