bin/metrics-curl.rb in sensu-plugins-http-2.8.2 vs bin/metrics-curl.rb in sensu-plugins-http-2.8.3

- old
+ new

@@ -56,11 +56,11 @@ long: '--scheme SCHEME', required: true, default: "#{Socket.gethostname}.curl_timings" def run - cmd = "curl --silent --output /dev/null #{config[:curl_args]} " - cmd += '-w %{time_total},%{time_namelookup},%{time_connect},%{time_pretransfer},%{time_redirect},%{time_starttransfer},%{http_code}" ' + cmd = "LC_NUMERIC=C curl --silent --output /dev/null #{config[:curl_args]} " + cmd += '-w "%{time_total},%{time_namelookup},%{time_connect},%{time_pretransfer},%{time_redirect},%{time_starttransfer},%{http_code}" ' cmd += config[:url] output = `#{cmd}` (time_total, time_namelookup, time_connect, time_pretransfer, time_redirect, time_starttransfer, http_code) = output.split(',')