summaryrefslogtreecommitdiffstats
path: root/glances/amps/glances_systemv.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/amps/glances_systemv.py')
-rw-r--r--glances/amps/glances_systemv.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/glances/amps/glances_systemv.py b/glances/amps/glances_systemv.py
index 29d292d4..2b72f349 100644
--- a/glances/amps/glances_systemv.py
+++ b/glances/amps/glances_systemv.py
@@ -67,14 +67,14 @@ class Amp(GlancesAmp):
# For each line
for r in res.split('\n'):
# Split per space .*
- l = r.split()
- if len(l) < 4:
+ line = r.split()
+ if len(line) < 4:
continue
- if l[1] == '+':
+ if line[1] == '+':
status['running'] += 1
- elif l[1] == '-':
+ elif line[1] == '-':
status['stopped'] += 1
- elif l[1] == '?':
+ elif line[1] == '?':
status['upstart'] += 1
# Build the output (string) message
output = 'Services\n'