diff options
Diffstat (limited to 'Client')
-rw-r--r-- | Client/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Client/client.rb b/Client/client.rb index 5b8f26c..8549886 100644 --- a/Client/client.rb +++ b/Client/client.rb @@ -25,7 +25,7 @@ threads["pingthread"] = Thread.new do loop do slock = true results = {"timestamp" => Time.now.to_i} settings["neighbours"].each do |neighbour| - pingtime = %x[ping -c1 #{neighbour}][/time=(.*?) ms/, 1] + pingtime = %x[ping -c1 #{neighbour}][/time=(.*?) ms/, 1].to_f results.merge!({neighbour => pingtime}) end rcoll.insert(results) |