1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-17 01:32:37 +02:00

add Idle support to state_map

This commit is contained in:
Kelly Brazil
2024-02-14 15:31:10 -08:00
parent 25085c3412
commit 588e5c2653
2 changed files with 3 additions and 2 deletions

View File

@ -225,4 +225,4 @@ Compatibility: linux
Source: [`jc/parsers/proc_pid_stat.py`](https://github.com/kellyjonbrazil/jc/blob/master/jc/parsers/proc_pid_stat.py) Source: [`jc/parsers/proc_pid_stat.py`](https://github.com/kellyjonbrazil/jc/blob/master/jc/parsers/proc_pid_stat.py)
Version 1.1 by Kelly Brazil (kellyjonbrazil@gmail.com) Version 1.2 by Kelly Brazil (kellyjonbrazil@gmail.com)

View File

@ -202,7 +202,7 @@ import jc.utils
class info(): class info():
"""Provides parser metadata (version, author, etc.)""" """Provides parser metadata (version, author, etc.)"""
version = '1.1' version = '1.2'
description = '`/proc/<pid>/stat` file parser' description = '`/proc/<pid>/stat` file parser'
author = 'Kelly Brazil' author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com' author_email = 'kellyjonbrazil@gmail.com'
@ -239,6 +239,7 @@ def _process(proc_data: Dict) -> Dict:
'K': 'Wakekill', 'K': 'Wakekill',
'W': 'Waking', 'W': 'Waking',
'P': 'Parked', 'P': 'Parked',
'I': 'Idle'
} }
if 'state' in proc_data: if 'state' in proc_data: