clausklein / rpms / tftp

Forked from rpms/tftp 5 years ago
Clone
364356
diff -up tftp-hpa-0.49/tftp/tftp.c.stats tftp-hpa-0.49/tftp/tftp.c
364356
--- tftp-hpa-0.49/tftp/tftp.c.stats	2011-01-03 15:38:34.217918067 +0100
364356
+++ tftp-hpa-0.49/tftp/tftp.c	2011-01-03 15:38:37.498917014 +0100
364356
@@ -400,8 +400,8 @@ static void printstats(const char *direc
364356
 {
364356
     double delta;
364356
 
364356
-    delta = (tstop.tv_sec + (tstop.tv_usec / 100000.0)) -
364356
-        (tstart.tv_sec + (tstart.tv_usec / 100000.0));
364356
+    delta = (tstop.tv_sec + (tstop.tv_usec / 1000000.0)) -
364356
+        (tstart.tv_sec + (tstart.tv_usec / 1000000.0));
364356
     if (verbose) {
364356
         printf("%s %lu bytes in %.1f seconds", direction, amount, delta);
364356
         printf(" [%.0f bit/s]", (amount * 8.) / delta);