bloopletech-webstats 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/server/data_providers/url_monitor.rb +2 -2
- data/webstats.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -38,8 +38,8 @@ class DataProviders::UrlMonitor
|
|
38
38
|
out = {}
|
39
39
|
@mutex.synchronize { out[:urls] = @readings.to_a.sort_by { |e| e[0] } }
|
40
40
|
out[:urls].each do |(url, info)|
|
41
|
-
out[:status] = 'warning' if (info[:works] == :failed) or info[:response_time] > @settings[:warning_response_time_threshold] and !out[:status] == 'danger'
|
42
|
-
out[:status] = 'danger' if (info[:works] == :failed) or info[:response_time] > @settings[:danger_response_time_threshold]
|
41
|
+
out[:status] = 'warning' if (info[:works] == :failed) or info[:response_time] > @settings[:warning_response_time_threshold] * 1000 and !out[:status] == 'danger'
|
42
|
+
out[:status] = 'danger' if (info[:works] == :failed) or info[:response_time] > @settings[:danger_response_time_threshold] * 1000
|
43
43
|
end
|
44
44
|
out
|
45
45
|
end
|
data/webstats.gemspec
CHANGED