]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/api_waits_
Yet more rubucop cleanups
[chef.git] / cookbooks / munin / files / default / plugins / api_waits_
index fcf956ccb5b25e53e334b9b7e157a9c1ff5ae9d9..f78152665ba06afb28828b9cd9648e76a70b57b5 100755 (executable)
@@ -43,7 +43,7 @@ def categorise_uri(line)
   end
 end
 
-server = $0.match("api_waits_(.*)")[1]
+server = $PROGRAM_NAME.match("api_waits_(.*)")[1]
 
 if ARGV[0] == 'config'
   puts "graph_title Wait times for active requests"