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

fix indentation for int and float conversions. add real_time field to schema

This commit is contained in:
Kelly Brazil
2021-03-31 20:48:44 -07:00
parent a571d3cbaf
commit 82539444b2
2 changed files with 22 additions and 20 deletions

View File

@ -108,6 +108,7 @@ Returns:
https://man7.org/linux/man-pages/man1/time.1.html
{
"real_time": float,
"user_time": float,
"system_time": float,
"elapsed_time": string,

View File

@ -113,6 +113,7 @@ def process(proc_data):
https://man7.org/linux/man-pages/man1/time.1.html
{
"real_time": float,
"user_time": float,
"system_time": float,
"elapsed_time": string,
@ -181,7 +182,7 @@ def process(proc_data):
except (ValueError):
proc_data[key] = None
float_list = ['user_time', 'system_time']
float_list = ['real_time', 'user_time', 'system_time']
for key in float_list:
if key in proc_data:
try: