]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/passenger_processes
Fix more rubocop detected style issues
[chef.git] / cookbooks / munin / files / default / plugins / passenger_processes
index d89d0412e9139d2fac1a0ec39f908ef4b6ffa413..75a36923393255f0e482a950997a2f8784291436 100755 (executable)
@@ -23,10 +23,10 @@ def output_values
     exit 1
   end
   status =~ /active\s+=\s+(\d+)/
-  puts "active.value #{$1}"
+  puts "active.value #{Regexp.last_match[1]}"
 
   status =~ /inactive\s+=\s+(\d+)/
-  puts "inactive.value #{$1}"
+  puts "inactive.value #{Regexp.last_match[1]}"
 end
 
 if ARGV[0] == "config"