c54da67276
to print the stats were using an uninitialised variable. [1] Fix trasnfer statistics in the "receive file" case - the statistics struct was being cleared both before and after the initial connect to the remote server. As a result, the printed time and calculated bandwidth covers the time to connect ad well as the time to transfer the file. This may not be ideal, but now at least matches the "send file" case. Found by: clang static analyser [1] Reviewed by: imp |
||
---|---|---|
.. | ||
main.c | ||
Makefile | ||
tftp.1 | ||
tftp.c | ||
tftp.h |