mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Update bench.sh
This commit is contained in:
parent
dd819811b6
commit
56f11d49e4
4
bench.sh
4
bench.sh
@ -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}' )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user