lib/ruote/id/wfid_generator.rb in ruote-2.1.10 vs lib/ruote/id/wfid_generator.rb in ruote-2.1.11
- old
+ new
@@ -48,10 +48,10 @@
def get_raw
lraw = @last['raw'] + 0.01
raw = Time.now.utc
- while raw.to_f <= lraw; raw = raw + 0.01; end
+ raw = raw + 0.01 while raw.to_f <= lraw
@last['raw'] = raw.to_f
last = @context.storage.put(@last)