1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

fix for mem info in different units

This commit is contained in:
Kelly Brazil
2022-05-25 10:46:58 -07:00
parent 6869133f53
commit 51aa5b268f

View File

@ -319,6 +319,7 @@ def _safe_split(string: str, path: str, delim: str = ' ', quiet=False) -> List[s
return split_string return split_string
def _process(proc_data: List[Dict], quiet=False) -> List[Dict]: def _process(proc_data: List[Dict], quiet=False) -> List[Dict]:
""" """
Final processing to conform to the schema. Final processing to conform to the schema.
@ -565,7 +566,7 @@ def parse(
) )
continue continue
if line.startswith('KiB Mem :'): if line[1:].startswith('iB Mem :'):
# KiB Mem : 3861332 total, 3446476 free, 216940 used, 197916 buff/cache # KiB Mem : 3861332 total, 3446476 free, 216940 used, 197916 buff/cache
line_list = line.split() line_list = line.split()
item_obj.update( item_obj.update(