Really show kbits/s like the label says we are.

PR:		18213
Submitted by:	Oliver Breuninger <ob@seicom.net>
This commit is contained in:
Steve Price 2000-04-30 00:23:54 +00:00
parent 6186a24206
commit b8c3a4239f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28127

View File

@ -109,7 +109,7 @@ int argc; char **argv;
expms = (stops-starts)*1000 + (stopms-startms);
printf("\n%d %d-byte blocks in %ld msec.\n", nblocks, BLKSIZE, expms);
printf("Throughput = %.1f kbit/s", (double) (nblocks*BLKSIZE) / expms * 8000.0);
printf("Throughput = %.1f kbit/s", (double) (nblocks*BLKSIZE) / expms * 8.0);
printf(" = %.1f kByte/s", (double) (nblocks*BLKSIZE) / expms * 1000.0);
printf(" = %.1f MByte/s\n", (double) (nblocks*BLKSIZE) / (double)(expms*1024.0));
return(0);