Skip to content
Browse files

Modern fixes

  • Loading branch information...
1 parent 7dc2d7d commit bd9a6b130a93c9bb12f6b90926a2ff1a573996d0 @delano committed
Showing with 4 additions and 1 deletion.
  1. +3 −1 lib/benelux.rb
  2. +1 −0 lib/benelux/stats.rb
View
4 lib/benelux.rb
@@ -63,7 +63,9 @@ def Benelux.update_all_track_timelines
def Benelux.update_track_timeline(track=nil)
track = Thread.current.track if track.nil?
threads = Benelux.known_threads.select { |t| t.track == track }
- Benelux.timelines[track] = Benelux.merge_timelines(*threads.collect { |t| t.timeline })
+ list = threads.collect { |t| t.timeline }
+ list << Benelux.timelines[track]
+ Benelux.timelines[track] = Benelux.merge_timelines(*list)
threads.each { |t| t.timeline.clear }
Benelux.timelines[track]
end
View
1 lib/benelux/stats.rb
@@ -80,6 +80,7 @@ def sample(s, tags={})
end
def mean() merge.mean end
+ def sum() merge.sum end
def min() merge.min end
def max() merge.max end
def sd() merge.sd end

0 comments on commit bd9a6b1

Please sign in to comment.
Something went wrong with that request. Please try again.