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