garbageman 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/garbageman.gemspec +1 -1
- data/lib/garbageman/collector.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDI0OGY5NzRjM2JmMDBmMjQ4YjBjY2ZjYzgwYzFhNWI0M2QxZTlmMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTdmNGJiYThhYTIwYjUwYWFiM2I3ODQxZGQ5MzgzMjVmNDQ4NzFiMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDMzNjNjZDgwYTU2ZTRjYzFiYjFiOGE3ODQyNDcyOWE0YWJkYjI5YmIxMTkw
|
10
|
+
MDQ1MmQ3YmMzMThjOTY3YWVhOTdhNTVlYTlkMWU5N2JiODE0MmIwZmQ0ZDIw
|
11
|
+
NjUwMTc2MWZjZTJmYmU3NjYxN2U2Y2Q0MWU2NjhjY2VmMTI3MTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTY1YWFhZTE2ZDRmNTdhMjRlZGFmZmY2ZjIwOTY0MGEzMmM1OTE5NTJlMjBj
|
14
|
+
ZDlkZjNiZTc2YTY4YTQ1NDQ4YjJkMjk5ZWY4ZWJiMmUyYzhiMjZmZGRiODg1
|
15
|
+
MWM4NmQ5YTkzNWI2M2FhYjQzMzNkOGM4ZTAxNzM3YjNlZWJkYmU=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/garbageman.gemspec
CHANGED
data/lib/garbageman/collector.rb
CHANGED
@@ -17,7 +17,7 @@ module GarbageMan
|
|
17
17
|
module Messages
|
18
18
|
CAN_NOT_DISABLE_GC = "can not disable gc"
|
19
19
|
QUEUING_REQUESTS = "queuing request, enabling gc"
|
20
|
-
WAITED_TOO_LONG = "waited
|
20
|
+
WAITED_TOO_LONG = "waited %.2f seconds to gc"
|
21
21
|
DISABLE_GC = "disabling gc"
|
22
22
|
CANT_TURN_OFF = "enabling gc, can not turn off"
|
23
23
|
end
|
@@ -70,7 +70,7 @@ module GarbageMan
|
|
70
70
|
warn QUEUING_REQUESTS
|
71
71
|
GC.enable
|
72
72
|
elsif waited_too_long_to_gc?
|
73
|
-
warn WAITED_TOO_LONG
|
73
|
+
warn (WAITED_TOO_LONG % (Time.now - @last_gc_finished_at))
|
74
74
|
GC.enable
|
75
75
|
end
|
76
76
|
|