uv-rays 1.0.7 → 1.0.8
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 +3 -3
- data/lib/uv-rays/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbadacdf7975c487ba2f09d7aa6dad1a158ca2b7
|
4
|
+
data.tar.gz: 6919e8d21bbca00e4db3f392dc3909020b1bb922
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ad9c74a89a13bf242d67d57c750640c013265643f9ea747fee1610f4f10f014624186d893802472f72579efdac1f4644d35f9176fce6f85a0d7eebf1b50ab8e
|
7
|
+
data.tar.gz: 073a4dfe912276748a5a63bd7669775a84311cfcb7f749432d27889469467badc077a5760acaad7e415329012e9e8bc3c5799fa29fc211a754c11926211f46aa
|
data/lib/uv-rays/scheduler.rb
CHANGED
@@ -334,7 +334,7 @@ module UV
|
|
334
334
|
in_time = @next - @loop.now
|
335
335
|
|
336
336
|
# Ensure there are never negative start times
|
337
|
-
if in_time >
|
337
|
+
if in_time > 5
|
338
338
|
@timer.start(in_time)
|
339
339
|
else
|
340
340
|
# Effectively next tick
|
@@ -351,9 +351,9 @@ module UV
|
|
351
351
|
@schedules.delete(schedule)
|
352
352
|
schedule.trigger
|
353
353
|
|
354
|
-
# execute schedules that are within
|
354
|
+
# execute schedules that are within 5ms of this event
|
355
355
|
# Basic timer coalescing..
|
356
|
-
now = @loop.now +
|
356
|
+
now = @loop.now + 5
|
357
357
|
while @scheduled.first && @scheduled.first.next_scheduled <= now
|
358
358
|
schedule = @scheduled.shift
|
359
359
|
@schedules.delete(schedule)
|
data/lib/uv-rays/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uv-rays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen von Takach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libuv
|