summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPascal Betz <pascal.betz@gmail.com>2016-09-08 19:41:25 +0200
committerPascal Betz <pascal.betz@gmail.com>2016-09-08 19:41:25 +0200
commit76c7b83dd5e345583fbaa26d9462a1bec7107a60 (patch)
treecb0021a92c231b7a4b7f02045b14f93d07cefd9c /app
parentd027ed719dfdfabb687985ec6d4c6301953102cc (diff)
downloadgitlab-ce-76c7b83dd5e345583fbaa26d9462a1bec7107a60.tar.gz
Remove original regexp
Diffstat (limited to 'app')
-rw-r--r--app/helpers/sidekiq_helper.rb16
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)