diff --git a/nginx_stage/lib/nginx_stage/session_finder.rb b/nginx_stage/lib/nginx_stage/session_finder.rb index 2047b7d5d3..c413a8d0c9 100644 --- a/nginx_stage/lib/nginx_stage/session_finder.rb +++ b/nginx_stage/lib/nginx_stage/session_finder.rb @@ -1,9 +1,11 @@ +# frozen_string_literal: true + module NginxStage module SessionFinder def session_count(user) `ps -o cmd -u #{user}`.split("\n").select do |command| - command.match?(/Passenger [\w]+App:/) + command.match?(/Passenger \w+App:/) end.count end end -end \ No newline at end of file +end