Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion run_ntttcp-for-linux/report-ntttcp-and-tcping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ do
i=$(($i + 1))
done

cat $result_file
cat $result_file | column -t

10 changes: 10 additions & 0 deletions run_ntttcp-for-linux/run-ntttcp-and-tcping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ function get_tx_bytes(){
#TX packets 223558709 bytes 15463202847 (14.4 GiB)
Tx_bytes=`ifconfig $eth_name| grep "TX packets"| awk '{print $5}'`
fi
if [ "x$Tx_bytes" == "x" ]
then
#if ifconfig cmd not present
Tx_bytes=`cat /sys/class/net/$eth_name/statistics/tx_packets`
fi
echo $Tx_bytes
}

Expand All @@ -65,6 +70,11 @@ function get_tx_pkts(){
#TX packets 223558709 bytes 15463202847 (14.4 GiB)
Tx_pkts=`ifconfig $eth_name| grep "TX packets"| awk '{print $3}'`
fi
if [ "x$Tx_pkts" == "x" ]
then
#if ifconfig cmd not present
Tx_pkts=`cat /sys/class/net/$eth_name/statistics/tx_packets`
fi
echo $Tx_pkts
}

Expand Down