mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-11-05 23:41:30 +05:30
fix json output
This commit is contained in:
parent
e0c38bb933
commit
729cb553c5
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue