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

add timestamp format hints for better performance

This commit is contained in:
Kelly Brazil
2022-02-07 15:44:46 -08:00
parent 76f92908a3
commit d0387f5820
16 changed files with 34 additions and 29 deletions

View File

@ -141,7 +141,7 @@ import jc.utils
class info():
"""Provides parser metadata (version, author, etc.)"""
version = '1.5'
version = '1.6'
description = '`who` command parser'
author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com'
@ -171,7 +171,7 @@ def _process(proc_data):
entry[key] = jc.utils.convert_to_int(entry[key])
if 'time' in entry:
ts = jc.utils.timestamp(entry['time'])
ts = jc.utils.timestamp(entry['time'], format_hint=(1500,))
entry['epoch'] = ts.naive
return proc_data