1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

process optimizations

This commit is contained in:
Kelly Brazil
2022-07-16 20:51:18 -07:00
parent 26d4bbe9a4
commit 33b996f6be
35 changed files with 192 additions and 156 deletions

View File

@ -136,7 +136,7 @@ import jc.utils
class info():
"""Provides parser metadata (version, author, etc.)"""
version = '1.6'
version = '1.7'
description = '`who` command parser'
author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com'
@ -159,8 +159,9 @@ def _process(proc_data):
List of Dictionaries. Structured data to conform to the schema.
"""
int_list = {'pid'}
for entry in proc_data:
int_list = ['pid']
for key in entry:
if key in int_list:
entry[key] = jc.utils.convert_to_int(entry[key])