mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
add Idle support to state_map
This commit is contained in:
@ -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)
|
||||
|
||||
Version 1.1 by Kelly Brazil (kellyjonbrazil@gmail.com)
|
||||
Version 1.2 by Kelly Brazil (kellyjonbrazil@gmail.com)
|
||||
|
@ -202,7 +202,7 @@ import jc.utils
|
||||
|
||||
class info():
|
||||
"""Provides parser metadata (version, author, etc.)"""
|
||||
version = '1.1'
|
||||
version = '1.2'
|
||||
description = '`/proc/<pid>/stat` file parser'
|
||||
author = 'Kelly Brazil'
|
||||
author_email = 'kellyjonbrazil@gmail.com'
|
||||
@ -239,6 +239,7 @@ def _process(proc_data: Dict) -> Dict:
|
||||
'K': 'Wakekill',
|
||||
'W': 'Waking',
|
||||
'P': 'Parked',
|
||||
'I': 'Idle'
|
||||
}
|
||||
|
||||
if 'state' in proc_data:
|
||||
|
Reference in New Issue
Block a user