mirror of
https://github.com/nicolargo/glances.git
synced 2024-08-16 16:00:27 +03:00
--export-process-filter Filter using complete command #2824
This commit is contained in:
parent
12dafcf856
commit
0791c7e9da
@ -196,11 +196,10 @@ class GlancesExport:
|
||||
for key, value in sorted(iteritems(stats)):
|
||||
if isinstance(value, bool):
|
||||
value = json_dumps(value)
|
||||
|
||||
if isinstance(value, list):
|
||||
try:
|
||||
value = value[0]
|
||||
except IndexError:
|
||||
value = ''
|
||||
value = ' '.join([str(v) for v in value])
|
||||
|
||||
if isinstance(value, dict):
|
||||
item_names, item_values = self.build_export(value)
|
||||
item_names = [pre_key + key.lower() + str(i) for i in item_names]
|
||||
|
Loading…
Reference in New Issue
Block a user