Add test stats output when stopping with CTRL+C
jwbensley opened this issue · 1 comments
jwbensley commented
ISSUE TYPE
- Bug Report
- Enhancement/Feature Request
- Question
VERSION DETAILS
Etherate version 0.13.beta 2017-07
SUMMARY
Quitting with CTRL+C before a running test has finished means that no "stats" are printed for the portion of a test that as run so far.
STEPS TO REPRODUCE
bensley@ubuntu-laptop:~/C/github/etherate/Etherate$ sudo ./etherate -i lo -g -G
[sudo] password for bensley:
Running in TX mode
Using device lo with address 00:00:00:00:00:00, interface index 1
Physical interface MTU unknown, test might exceed physical MTU!
Entering promiscuous mode
Source MAC 00:00:5e:00:00:01
Destination MAC 00:00:5e:00:00:02
Sending gratuitous broadcasts...
Done.
Frame size is 1514 bytes
Starting test on Sun Sep 24 15:30:51 2017
Seconds Mbps Tx MBs Tx FrmTx/s Frames Tx
1 971.18 115 80932 80932
2 9900.89 1296 825074 906006
3 9684.61 2450 807051 1713057
^CQuitting...
Leaving promiscuous mode
The stats that are printed when a test is fully completed (such as min/max/avg, frame counts etc) should be printed even when a test is stopped prematurely.
jwbensley commented
Implemented in version 1.15.