uv-rays 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uv-rays/scheduler.rb +1 -2
- data/lib/uv-rays/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e0029a1210334c29042a4a40070f4024959088a
|
4
|
+
data.tar.gz: a5f1571c61f7547b09afe11255a7afe2a347aa07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a44a3a1aa2c2cfd870a3a53203a96c9d5a5b517513c4f3d3cc6de98f86c7c7659b0c95c2f7ee36f8bdad081cb6827d8cc1c913823a14c22a1e073b1592b483bf
|
7
|
+
data.tar.gz: de76bdb6c73d7afc01bbbd98cc1746d2cbc8c94d1a4c00aeec189aa416d8c0b4ec1dc4a147cdc1733c83cba4aa7ac227e2a1db810ac1963e773dfe360b92b955
|
data/lib/uv-rays/scheduler.rb
CHANGED
@@ -261,7 +261,6 @@ module UV
|
|
261
261
|
else
|
262
262
|
@schedules << event
|
263
263
|
end
|
264
|
-
@next = nil if @next == event
|
265
264
|
|
266
265
|
# optimal algorithm for inserting into an already sorted list
|
267
266
|
Bisect.insort(@scheduled, event)
|
@@ -351,7 +350,7 @@ module UV
|
|
351
350
|
@schedules.delete(schedule)
|
352
351
|
schedule.trigger
|
353
352
|
|
354
|
-
# execute schedules that are within
|
353
|
+
# execute schedules that are within 3ms of this event
|
355
354
|
# Basic timer coalescing..
|
356
355
|
now = @loop.now + 3
|
357
356
|
while @scheduled.first && @scheduled.first.next_scheduled <= now
|
data/lib/uv-rays/version.rb
CHANGED