mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-11-05 15:41:30 +05:30
Fixed typo
This commit is contained in:
parent
a52c3137a5
commit
20846f0816
1 changed files with 1 additions and 1 deletions
2
yabs.sh
2
yabs.sh
|
|
@ -98,7 +98,7 @@ function disk_test {
|
||||||
# read test using dd using the 1G file written during the write test
|
# read test using dd using the 1G file written during the write test
|
||||||
DISK_READ_TEST=$(dd if=$DISK_PATH/$DATE.test of=/dev/null bs=8k |& grep copied | awk '{ print $(NF-1) " " $(NF)}')
|
DISK_READ_TEST=$(dd if=$DISK_PATH/$DATE.test of=/dev/null bs=8k |& grep copied | awk '{ print $(NF-1) " " $(NF)}')
|
||||||
VAL=$(echo $DISK_READ_TEST | cut -d " " -f 1)
|
VAL=$(echo $DISK_READ_TEST | cut -d " " -f 1)
|
||||||
[[ "$DISK_READ_TEST" == *"GB"* ]] && VAL=$(awk -v a="$VAL" 'BEGIN { pring a * 1000 }')
|
[[ "$DISK_READ_TEST" == *"GB"* ]] && VAL=$(awk -v a="$VAL" 'BEGIN { print a * 1000 }')
|
||||||
DISK_READ_TEST_RES+=( "$DISK_READ_TEST" )
|
DISK_READ_TEST_RES+=( "$DISK_READ_TEST" )
|
||||||
DISK_READ_TEST_AVG=$(awk -v a="$DISK_READ_TEST_AVG" -v b="$VAL" 'BEGIN { print a + b }')
|
DISK_READ_TEST_AVG=$(awk -v a="$DISK_READ_TEST_AVG" -v b="$VAL" 'BEGIN { print a + b }')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue