diff options
author | Chris Schlaeger <chris@linux.com> | 2015-10-12 22:06:48 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2015-10-12 22:06:48 +0200 |
commit | e5f2b409d1ef1e27884c760d563e43f72b660511 (patch) | |
tree | 4c05c15b037efbe4ba045e3fd72af2c2ba0e853a /lib | |
parent | fa088e932bf15e7c7d00d4a04c8786bcb9a11ed2 (diff) | |
download | postrunner-e5f2b409d1ef1e27884c760d563e43f72b660511.zip |
Remove not needed files.v0.0.10
Diffstat (limited to 'lib')
-rw-r--r-- | lib/postrunner/MonitoringDB.rb | 8 | ||||
-rw-r--r-- | lib/postrunner/version.rb | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/lib/postrunner/MonitoringDB.rb b/lib/postrunner/MonitoringDB.rb index cc500bf..eeb8f87 100644 --- a/lib/postrunner/MonitoringDB.rb +++ b/lib/postrunner/MonitoringDB.rb @@ -10,27 +10,19 @@ # published by the Free Software Foundation. # -require 'postrunner/TimestampedObjectList' -require 'postrunner/MonitoringData' - module PostRunner class MonitoringDB def initialize(store, cfg) @store = store - @tol = TimestampedObjectList.new(@store, 'monitoring') end def add(fit_file_name, fit_monitoring_b) start_time = fit_monitoring_b.monitoring_infos[0].timestamp - data = MonitoringData.new(@store) - @tol.add_object(start_time, data) fit_monitoring_b.monitorings.each do |monitoring| if (cati = monitoring.current_activity_type_intensity) - data = MonitoringData.new(@store) - @tol.add_object(monitoring.timestamp, data) data.activity_type = decode_activity_type(cati & 0x1F) data.intensity = (cati >> 5) & 0x7 #puts "#{monitoring.timestamp}: #{decode_activity_type(cati & 0x1F)}" + diff --git a/lib/postrunner/version.rb b/lib/postrunner/version.rb index 60fcf13..2179ea3 100644 --- a/lib/postrunner/version.rb +++ b/lib/postrunner/version.rb @@ -11,5 +11,5 @@ # module PostRunner - VERSION = "0.0.9" + VERSION = "0.0.10" end |