Fix ttcp rate output string
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 15:52:52 +0000 (10:52 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 15:52:52 +0000 (10:52 -0500)
commite3fe0f76a513e17e1a8e1b773ce3c1c7adc9e2f7
treed54cbc166a77df58daa15ad2703aa6661c4fdb08
parentd3ba0b827556376e099ff1366debcc6ffe399263
Fix ttcp rate output string

Previously, we'd have output like:

ttcp-t: X bytes in Y real seconds = Z (null)/sec

Now it is:

ttcp-t: X bytes in Y real seconds = Z KB/sec

'unit' wasn't set.  It gets set as a byproduct of calling rate().  The old
code was assuming that the arguments to fprintf were processed in order.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tests/ttcp.c