[ros-diffs] [gvg] 20321: Fix transfer summary
gvg at svn.reactos.com
gvg at svn.reactos.com
Sat Dec 24 15:28:09 CET 2005
Fix transfer summary
Modified: trunk/reactos/apps/utils/net/ftp/fake.c
Modified: trunk/reactos/apps/utils/net/ftp/ftp.c
_____
Modified: trunk/reactos/apps/utils/net/ftp/fake.c
--- trunk/reactos/apps/utils/net/ftp/fake.c 2005-12-24 09:33:35 UTC
(rev 20320)
+++ trunk/reactos/apps/utils/net/ftp/fake.c 2005-12-24 14:28:05 UTC
(rev 20321)
@@ -317,8 +317,8 @@
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 */
_____
Modified: trunk/reactos/apps/utils/net/ftp/ftp.c
--- trunk/reactos/apps/utils/net/ftp/ftp.c 2005-12-24 09:33:35 UTC
(rev 20320)
+++ trunk/reactos/apps/utils/net/ftp/ftp.c 2005-12-24 14:28:05 UTC
(rev 20321)
@@ -1294,7 +1294,7 @@
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);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051224/03f1d2b6/attachment.html
More information about the Ros-diffs
mailing list