Update bench.sh

This commit is contained in:
Teddysun 2022-01-01 16:39:56 +09:00
parent dd819811b6
commit 56f11d49e4
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -221,8 +221,8 @@ get_system_info() {
echo ${arch} | grep -q "64" && lbit="64" || lbit="32" echo ${arch} | grep -q "64" && lbit="64" || lbit="32"
fi fi
kern=$( uname -r ) kern=$( uname -r )
disk_size1=($( LANG=C df -hPl | grep -wvE '\-|none|tmpfs|devtmpfs|by-uuid|chroot|Filesystem|udev|docker' | awk '{print $2}' )) disk_size1=($( LANG=C df -hPl | grep -wvE '\-|none|tmpfs|devtmpfs|by-uuid|chroot|Filesystem|udev|docker|snapd' | awk '{print $2}' ))
disk_size2=($( LANG=C df -hPl | grep -wvE '\-|none|tmpfs|devtmpfs|by-uuid|chroot|Filesystem|udev|docker' | awk '{print $3}' )) disk_size2=($( LANG=C df -hPl | grep -wvE '\-|none|tmpfs|devtmpfs|by-uuid|chroot|Filesystem|udev|docker|snapd' | awk '{print $3}' ))
disk_total_size=$( calc_disk "${disk_size1[@]}" ) disk_total_size=$( calc_disk "${disk_size1[@]}" )
disk_used_size=$( calc_disk "${disk_size2[@]}" ) disk_used_size=$( calc_disk "${disk_size2[@]}" )
tcpctrl=$( sysctl net.ipv4.tcp_congestion_control | awk -F ' ' '{print $3}' ) tcpctrl=$( sysctl net.ipv4.tcp_congestion_control | awk -F ' ' '{print $3}' )