mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Fix a IO test bug in Chinese environment
This commit is contained in:
parent
b637136982
commit
79e1f65493
2
bench.sh
2
bench.sh
@ -76,7 +76,7 @@ speed_v6() {
|
||||
}
|
||||
|
||||
io_test() {
|
||||
(dd if=/dev/zero of=test_$$ bs=64k count=16k conv=fdatasync && rm -f test_$$ ) 2>&1 | awk -F, '{io=$NF} END { print io}' | sed 's/^[ \t]*//;s/[ \t]*$//'
|
||||
(LANG=en_US dd if=/dev/zero of=test_$$ bs=64k count=16k conv=fdatasync && rm -f test_$$ ) 2>&1 | awk -F, '{io=$NF} END { print io}' | sed 's/^[ \t]*//;s/[ \t]*$//'
|
||||
}
|
||||
|
||||
cname=$( awk -F: '/model name/ {name=$2} END {print name}' /proc/cpuinfo | sed 's/^[ \t]*//;s/[ \t]*$//' )
|
||||
|
Loading…
x
Reference in New Issue
Block a user