diff options
author | Pascal Betz <pascal.betz@gmail.com> | 2016-09-08 19:41:25 +0200 |
---|---|---|
committer | Pascal Betz <pascal.betz@gmail.com> | 2016-09-08 19:41:25 +0200 |
commit | 76c7b83dd5e345583fbaa26d9462a1bec7107a60 (patch) | |
tree | cb0021a92c231b7a4b7f02045b14f93d07cefd9c /app | |
parent | d027ed719dfdfabb687985ec6d4c6301953102cc (diff) | |
download | gitlab-ce-76c7b83dd5e345583fbaa26d9462a1bec7107a60.tar.gz |
Remove original regexp
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/sidekiq_helper.rb | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/app/helpers/sidekiq_helper.rb b/app/helpers/sidekiq_helper.rb index 37650ca642b..d440edc55ba 100644 --- a/app/helpers/sidekiq_helper.rb +++ b/app/helpers/sidekiq_helper.rb @@ -1,14 +1,12 @@ module SidekiqHelper - SIDEKIQ_PS_REGEXP = /\A([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+(.+)\s+(sidekiq.*\])\s+\z/ - SIDEKIQ_PS_REGEXP = /\A - (?<pid>\d+)\s+ - (?<cpu>[\d\.,]+)\s+ - (?<mem>[\d\.,]+)\s+ - (?<state>[DRSTWXZNLsl\+<]+)\s+ - (?<start>.+)\s+ - (?<command>sidekiq.*\])\s+ - \z/x + (?<pid>\d+)\s+ + (?<cpu>[\d\.,]+)\s+ + (?<mem>[\d\.,]+)\s+ + (?<state>[DRSTWXZNLsl\+<]+)\s+ + (?<start>.+)\s+ + (?<command>sidekiq.*\])\s+ + \z/x def parse_sidekiq_ps(line) match = line.match(SIDEKIQ_PS_REGEXP) |