From b321c100943b5645928a465e0aa7124add8334a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 24 Dec 2005 14:28:05 +0000 Subject: [PATCH] Fix transfer summary svn path=/trunk/; revision=20321 --- reactos/apps/utils/net/ftp/fake.c | 4 ++-- reactos/apps/utils/net/ftp/ftp.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/apps/utils/net/ftp/fake.c b/reactos/apps/utils/net/ftp/fake.c index e1ca22ec673..f8d0c8cdadf 100644 --- a/reactos/apps/utils/net/ftp/fake.c +++ b/reactos/apps/utils/net/ftp/fake.c @@ -317,8 +317,8 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) if (tv) { GetSystemTimeAsFileTime(&ft); - //li.LowPart = ft.dwLowDateTime; - //li.HighPart = ft.dwHighDateTime; + li.LowPart = ft.dwLowDateTime; + li.HighPart = ft.dwHighDateTime; t = li.QuadPart; /* In 100-nanosecond intervals */ t -= EPOCHFILETIME; /* Offset to the Epoch time */ t /= 10; /* In microseconds */ diff --git a/reactos/apps/utils/net/ftp/ftp.c b/reactos/apps/utils/net/ftp/ftp.c index bbe65799c58..640e1afdf7d 100644 --- a/reactos/apps/utils/net/ftp/ftp.c +++ b/reactos/apps/utils/net/ftp/ftp.c @@ -1294,7 +1294,7 @@ void ptransfer(direction, bytes, t0, t1) s = td.tv_sec + (td.tv_usec / 1000000.); #define nz(x) ((x) == 0 ? 1 : (x)) bs = bytes / nz(s); - printf("%ld bytes %s in %.2g seconds (%.2g Kbytes/s)\n", + printf("%ld bytes %s in %.1f seconds (%.0f Kbytes/s)\n", bytes, direction, s, bs / 1024.); (void) fflush(stdout); } -- 2.17.1