jabber: flush stdout in prosody-stats.rb

This commit is contained in:
Astro 2022-06-20 01:29:43 +02:00
parent 88fae0cf1b
commit 74f64931ba
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ loop do
k1, k2 = k.split(":", 2)
puts "PUTVAL \"#{HOSTNAME}/exec-prosody-#{k1}/current_connections-#{k2}\" interval=#{INTERVAL} N:#{v}"
end
STDOUT.flush
ensure
sleep INTERVAL