Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2000 14:03:34 +0100 (CET)
From:      ob@seicom.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16313: tcpblast modification
Message-ID:  <200001231303.OAA03635@bs-tosh.breuninger.org>

next in thread | raw e-mail | index | archive | help

>Number:         16313
>Category:       ports
>Synopsis:       tcpblast modification
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 23 05:10:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Breuninger
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
>Environment:
>Description:

	tcpblast localhost 100
	....................................................................................................
	100 1024-byte blocks in 13 msec.
	Throughput  =  63015384.6 kbit/s  =  7876923.1 kByte/s  =  7.7 MByte/s

tcpblast shows

	kbit/s, kByte/s and MByte/s

but the values are

	kbit/s, Byte/s and MByte/s

The Value in the middle shows Byte per second and has title kByte per second.
With the correction the middle value shows kByte for real.

	/tcpblast localhost 100
	....................................................................................................
	100 1024-byte blocks in 13 msec.
	Throughput  =  63015384.6 kbit/s  =  7876.9 kByte/s  =  7.7 MByte/s

>How-To-Repeat:
>Fix:
	
diff -rNu tcpblast /usr/ports/benchmarks/tcpblast
diff -rNu tcpblast/patches/patch-01 /usr/ports/benchmarks/tcpblast/patches/patch-01
--- tcpblast/patches/patch-01	Sun Jan 23 11:36:29 2000
+++ /usr/ports/benchmarks/tcpblast/patches/patch-01	Sat Dec  5 09:12:11 1998
@@ -1,6 +1,7 @@
---- tcpblast.c.orig	Sun Jan 23 11:15:53 2000
-+++ tcpblast.c	Sun Jan 23 11:18:05 2000
-@@ -109,7 +109,7 @@
+--- tcpblast.c.orig	Sat Dec  5 00:05:11 1998
++++ tcpblast.c	Sat Dec  5 00:05:12 1998
+@@ -108,9 +108,9 @@
+ 	stopms = ti.tv_usec / 1000L;
  
  	expms = (stops-starts)*1000 + (stopms-startms);
 -	printf("\n%d KB in %ld msec", nblocks, expms);
@@ -8,6 +9,7 @@
 -	printf("  =  %.1f kByte/s", (double) (nblocks*BLKSIZE) / expms * 1000);
 +	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("  =  %.1f kByte/s", (double) (nblocks*BLKSIZE) / expms);
++	printf("  =  %.1f kByte/s", (double) (nblocks*BLKSIZE) / expms * 1000.0);
  	printf("  =  %.1f MByte/s\n", (double) (nblocks*BLKSIZE) / (double)(expms*1024.0));
  return(0);
+ }


>Release-Note:
>Audit-Trail:
>Unformatted:
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001231303.OAA03635>