mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Update comments
This commit is contained in:
parent
024c35ba97
commit
e3e6213076
11
bench.sh
11
bench.sh
@ -257,8 +257,10 @@ 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_total_size=$( LANG=C; df -h -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $2 }' )
|
disk_total_size=$( LANG=C; df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $2 }' )
|
||||||
disk_used_size=$( LANG=C; df -h -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $3 }' )
|
disk_total_size=$( calc_size $disk_total_size )
|
||||||
|
disk_used_size=$( LANG=C; df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $3 }' )
|
||||||
|
disk_used_size=$( calc_size $disk_used_size )
|
||||||
tcpctrl=$( sysctl net.ipv4.tcp_congestion_control | awk -F ' ' '{print $3}' )
|
tcpctrl=$( sysctl net.ipv4.tcp_congestion_control | awk -F ' ' '{print $3}' )
|
||||||
}
|
}
|
||||||
# Print System information
|
# Print System information
|
||||||
@ -268,9 +270,10 @@ print_system_info() {
|
|||||||
else
|
else
|
||||||
echo " CPU Model : $(_blue "CPU model not detected")"
|
echo " CPU Model : $(_blue "CPU model not detected")"
|
||||||
fi
|
fi
|
||||||
echo " CPU Cores : $(_blue "$cores")"
|
|
||||||
if [ -n "$freq" ]; then
|
if [ -n "$freq" ]; then
|
||||||
echo " CPU Frequency : $(_blue "$freq MHz")"
|
echo " CPU Cores : $(_blue "$cores @ $freq MHz")"
|
||||||
|
else
|
||||||
|
echo " CPU Cores : $(_blue "$cores")"
|
||||||
fi
|
fi
|
||||||
if [ -n "$ccache" ]; then
|
if [ -n "$ccache" ]; then
|
||||||
echo " CPU Cache : $(_blue "$ccache")"
|
echo " CPU Cache : $(_blue "$ccache")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user