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:
@ -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,
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user