qfill 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/qfill/pusher.rb +1 -1
- data/lib/qfill/version.rb +1 -1
- metadata +1 -1
data/lib/qfill/pusher.rb
CHANGED
@@ -48,7 +48,7 @@ module Qfill
|
|
48
48
|
raise ArgumentError, "#{self.class}: mismatched ratios for queues #{with_ratio.join(' + ')} must not total more than 1"
|
49
49
|
end
|
50
50
|
num_without_ratio = self.queues.length - with_ratio.length
|
51
|
-
if num_without_ratio > 0 && ratio_to_split
|
51
|
+
if num_without_ratio > 0 && ratio_to_split <= 1
|
52
52
|
equal_portion = ratio_to_split / num_without_ratio
|
53
53
|
self.queues.each do |queue|
|
54
54
|
if queue.ratio.nil?
|
data/lib/qfill/version.rb
CHANGED