lib/libnotify.rb in libnotify-0.1.4 vs lib/libnotify.rb in libnotify-0.2.0
- old
+ new
@@ -115,9 +115,10 @@
# @todo Simplify timeout=
def timeout=(timeout)
@timeout = case timeout
when Float
+ timeout /= 10 if RUBY_VERSION == "1.8.6" # Strange workaround?
(timeout * 1000).to_i
when Fixnum
if timeout >= 100 # assume miliseconds
timeout
else