mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
Fix indentation
This commit is contained in:
parent
bfe6c718f0
commit
17a2a2f57e
@ -48,12 +48,12 @@ def split_process_cmdline(process):
|
||||
basename = process['name']
|
||||
arguments = None
|
||||
if process['exe'] and process['cmdline'].startswith(process['exe']):
|
||||
dn, bn = os.path.split(process['exe'])
|
||||
dirname = dn or None
|
||||
basename = bn or process['name']
|
||||
arguments = process['cmdline'][len(process['exe']):].lstrip()
|
||||
dn, bn = os.path.split(process['exe'])
|
||||
dirname = dn or None
|
||||
basename = bn or process['name']
|
||||
arguments = process['cmdline'][len(process['exe']):].lstrip()
|
||||
elif process['cmdline'].startswith(process['name']):
|
||||
arguments = process['cmdline'][len(process['name']):].lstrip()
|
||||
arguments = process['cmdline'][len(process['name']):].lstrip()
|
||||
return dirname, basename, arguments
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user