aboutsummaryrefslogtreecommitdiffstats
path: root/ramaskrik-program.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ramaskrik-program.rb')
-rwxr-xr-xramaskrik-program.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ramaskrik-program.rb b/ramaskrik-program.rb
index cd22839..f2b308b 100755
--- a/ramaskrik-program.rb
+++ b/ramaskrik-program.rb
@@ -33,8 +33,8 @@ class EventDecorator < SimpleDelegator
attr_reader :height
def calc_offsets(time_offset)
- @offset = 5 + (start_time - time_offset).to_i / 50
- @height = 5 + duration / 50;
+ @offset = 5 + (start_time - time_offset).to_f / 50
+ @height = 5 + duration.to_f / 50;
start_time + duration
end
end
@@ -52,7 +52,7 @@ class SortedEventList
.sort{ |a,b| a.start_time - b.start_time }
.map{ |e| EventDecorator.new(e) }
- @start_time = @events.first.start_time - (@events.first.start_time.min * 60)
+ @start_time = @events.first.start_time # - (@events.first.start_time.min * 60)
@events.group_by{|e| e.venue}.each do |venue, events|
time_offset = start_time