mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-04-17 07:55:16 +00:00
fix json output
This commit is contained in:
parent
e0c38bb933
commit
729cb553c5
2
yabs.sh
2
yabs.sh
@ -1021,7 +1021,7 @@ function calculate_time_taken() {
|
||||
else
|
||||
echo "YABS completed in ${time_taken} sec"
|
||||
fi
|
||||
[[ -n $JSON ]] && JSON_RESULT+=",\"runtime\":{\"start\":'$start_time',\"end\":'$end_time',\"elapsed\":'$time_taken'}"
|
||||
[[ -n $JSON ]] && JSON_RESULT+=",\"runtime\":{\"start\":$start_time,\"end\":$end_time,\"elapsed\":$time_taken}"
|
||||
}
|
||||
|
||||
calculate_time_taken "$YABS_END_TIME" "$YABS_START_TIME"
|
||||
|
Loading…
x
Reference in New Issue
Block a user