From 137c59cea1db2d45e986407a9b72501b83399dea Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sun, 28 Apr 2024 12:40:52 -0700 Subject: [PATCH] add quiet=True to uptime parsing --- jc/parsers/top.py | 4 ++-- jc/parsers/top_s.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jc/parsers/top.py b/jc/parsers/top.py index 2b87f22b..85d12661 100644 --- a/jc/parsers/top.py +++ b/jc/parsers/top.py @@ -316,7 +316,7 @@ from jc.parsers.universal import sparse_table_parse as parse_table class info(): """Provides parser metadata (version, author, etc.)""" - version = '1.1' + version = '1.2' description = '`top -b` command parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' @@ -565,7 +565,7 @@ def parse( item_obj = {} uptime_str = line[6:] - item_obj.update(parse_uptime(uptime_str, raw=True)) + item_obj.update(parse_uptime(uptime_str, raw=True, quiet=True)) continue if line.startswith('Tasks:'): diff --git a/jc/parsers/top_s.py b/jc/parsers/top_s.py index 38a94086..4d4b8f0a 100644 --- a/jc/parsers/top_s.py +++ b/jc/parsers/top_s.py @@ -153,7 +153,7 @@ from jc.parsers.universal import sparse_table_parse as parse_table class info(): """Provides parser metadata (version, author, etc.)""" - version = '1.1' + version = '1.2' description = '`top -b` command streaming parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' @@ -409,7 +409,7 @@ def parse( idx += 1 uptime_str = line[6:] - output_line.update(parse_uptime(uptime_str, raw=True)) + output_line.update(parse_uptime(uptime_str, raw=True, quiet=True)) continue if line.startswith('Tasks:'):