From f947ba80f5a2c55de00412787798089f899e3524 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 16 Jun 2002 21:54:12 +0000 Subject: [PATCH] Another small update for the transfer log --- mbcico/filelist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mbcico/filelist.c b/mbcico/filelist.c index 3710fbca..5386bf48 100644 --- a/mbcico/filelist.c +++ b/mbcico/filelist.c @@ -487,11 +487,11 @@ char *transfertime(struct timeval start, struct timeval end, long bytes, int sen if (!elapsed) elapsed = 1L; if (bytes > 1000000) - sprintf(resp, "%ld bytes %s in %0.3Lf seconds (%0.0Lf cps)", - bytes, sent?"sent":"received", elapsed / 1000.000, (bytes / elapsed) * 1000); + sprintf(resp, "%ld bytes %s in %0.3Lf seconds (%0.3Lf Kb/s)", + bytes, sent?"sent":"received", elapsed / 1000.000, ((bytes / elapsed) * 1000) / 1024); else - sprintf(resp, "%ld bytes %s in %0.3Lf seconds (%0.0Lf cps)", - bytes, sent?"sent":"received", elapsed / 1000.000, (bytes * 1000) / elapsed); + sprintf(resp, "%ld bytes %s in %0.3Lf seconds (%0.3Lf Kb/s)", + bytes, sent?"sent":"received", elapsed / 1000.000, ((bytes * 1000) / elapsed) / 1024); return resp; }