source:
npl/system/netkit-ftp/patches/21-netkit-ftp-0.17-bitrate.patch
@
551a8d2
Last change on this file since 551a8d2 was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 580 bytes |
-
netkit-ftp-0.17/ftp/ftp.c
diff -up netkit-ftp-0.17/ftp/ftp.c.old netkit-ftp-0.17/ftp/ftp.c
old new ptransfer(const char *direction, long lo 1609 1609 s = td.tv_sec + (td.tv_usec / 1000000.); 1610 1610 #define nz(x) ((x) == 0 ? 1 : (x)) 1611 1611 bs = bytes / nz(s); 1612 printf("%lld bytes %s in %.3g secs (%.2 gKbytes/sec)\n",1613 bytes, direction, s, bs / 10 24.0);1612 printf("%lld bytes %s in %.3g secs (%.2f Kbytes/sec)\n", 1613 bytes, direction, s, bs / 1000.0); 1614 1614 } 1615 1615 } 1616 1616
Note: See TracBrowser
for help on using the repository browser.