mirror of https://github.com/nicolargo/glances
Newline in container command corrupts display / hides container #2733
parent
4fbcd9486d
commit
01097af0ab
|
@ -334,6 +334,7 @@ class DockerContainersExtension:
|
|||
stats['network_rx'] = stats['network'].get('rx') // stats['network'].get('time_since_update')
|
||||
stats['network_tx'] = stats['network'].get('tx') // stats['network'].get('time_since_update')
|
||||
stats['uptime'] = pretty_date(parser.parse(started_at).astimezone(tz.tzlocal()).replace(tzinfo=None))
|
||||
# Manage special chars in command (see isse#2733)
|
||||
stats['command'] = replace_special_chars(' '.join(stats['command']))
|
||||
else:
|
||||
stats['io'] = {}
|
||||
|
|
Loading…
Reference in New Issue