stathat 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stathat.rb +0 -4
- data/stathat.gemspec +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: 9fcaa45f9e117f54ad4e94dfbbd76eaf9c1c5f67
|
4
|
+
data.tar.gz: 09713380a82ad0d6153fc15c0039cbcd6d613737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 491f1e5d91a2a59f14042ed3b384f8badd6ad8b2d6c2309437d20dc50948ac3ce63c6e4637230031dfc3ce53e2e2a2243c5790521f2d131349e45bff393790b9
|
7
|
+
data.tar.gz: 41994c6a53130aa45f6f860816132bb30ff3f14df18d5f545fb2049e6055defac11ba8ee01c5e93b7600d13242d4bd6aaf99a535d2a2b1b5a57ff500b65127e7
|
data/lib/stathat.rb
CHANGED
@@ -60,7 +60,6 @@ module StatHat
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def ez_post_value(stat_name, ezkey, value, timestamp, cb)
|
63
|
-
puts "ezval cb: #{cb}"
|
64
63
|
args = { :stat => stat_name,
|
65
64
|
:ezkey => ezkey,
|
66
65
|
:value => value }
|
@@ -82,12 +81,10 @@ module StatHat
|
|
82
81
|
@pool = []
|
83
82
|
5.times do |i|
|
84
83
|
@pool[i] = Thread.new do
|
85
|
-
puts "thread #{i} started"
|
86
84
|
while true do
|
87
85
|
point = @que.pop
|
88
86
|
# XXX check for error?
|
89
87
|
begin
|
90
|
-
puts "thread #{i}: sending"
|
91
88
|
resp = send_to_stathat(point[:url], point[:args])
|
92
89
|
if point[:cb]
|
93
90
|
point[:cb].call(resp)
|
@@ -99,7 +96,6 @@ module StatHat
|
|
99
96
|
break unless @running
|
100
97
|
}
|
101
98
|
end
|
102
|
-
puts "reporter thread #{i} finished"
|
103
99
|
end
|
104
100
|
end
|
105
101
|
end
|
data/stathat.gemspec
CHANGED