diff options
author | Chris Schlaeger <chris@linux.com> | 2015-06-20 22:35:32 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2015-06-20 22:35:32 +0200 |
commit | da80d813e85fcb05c7eb9971178f7da51ac23f3c (patch) | |
tree | 3407962432a1b27b5c913fefcb39934b7a979d59 /lib | |
parent | 88e1f74afee93c19f889ce8254f305a1f0ecf664 (diff) | |
download | postrunner-da80d813e85fcb05c7eb9971178f7da51ac23f3c.zip |
New: Show cumulated operating time for devices
Diffstat (limited to 'lib')
-rw-r--r-- | lib/postrunner/DeviceList.rb | 7 |
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 |