lib/overlayer.rb in sensible-cinema-0.10.2 vs lib/overlayer.rb in sensible-cinema-0.11.0
- old
+ new
@@ -4,16 +4,10 @@
require 'yaml'
require_relative 'muter'
require_relative 'blanker'
require 'pp' # for pretty_inspect
-class Time
- def self.now_f
- now.to_f
- end
-end
-
class OverLayer
def muted?
@am_muted
end
@@ -134,11 +128,11 @@
def translate_time_to_human_readable seconds
# 3600 => "1:00:00"
out = ''
hours = seconds.to_i / 3600
- out << "%d" % hours
+ out << "%d" % hours
out << ":"
seconds = seconds - hours*3600
minutes = seconds.to_i / 60
out << "%02d" % minutes
seconds = seconds - minutes * 60
@@ -376,6 +370,12 @@
display_change 'unblanked'
end
end
+end
+
+class Time
+ def self.now_f
+ now.to_f
+ end
end