FreeBSD Bugzilla – Attachment 134216 Details for
Bug 178862
[tools] [patch] fix cross-compilation (amd64/i386) of netrate/netreceive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1004 bytes, created by
olivier
on 2013-05-23 15:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
olivier
Created:
2013-05-23 15:40:00 UTC
Size:
1004 bytes
patch
obsolete
>--- tools/tools/netrate/netreceive/netreceive.c.orig 2013-05-23 12:00:42.735844141 +0200 >+++ tools/tools/netrate/netreceive/netreceive.c 2013-05-23 15:16:31.582033409 +0200 >@@ -163,7 +163,7 @@ > /* now the parent collects and prints results */ > c0 = c1 = bc0 = bc1 = 0; > clock_gettime(CLOCK_REALTIME, &then); >- fprintf(stderr, "start at %ld.%09ld\n", then.tv_sec, then.tv_nsec); >+ fprintf(stderr, "start at %jd.%09ld\n", (__intmax_t)then.tv_sec, then.tv_nsec); > while (1) { > int i, nt = nsock * nthreads; > int64_t dn; >@@ -185,8 +185,8 @@ > pps = (pps * 1000000000) / (delta.tv_sec*1000000000 + delta.tv_nsec + 1); > bps = ((bc0 - bc1) * 8000000000) / (delta.tv_sec*1000000000 + delta.tv_nsec + 1); > fprintf(stderr, " %9ld pps %8.3f Mbps", (long)pps, .000001*bps); >- fprintf(stderr, " - %d pkts in %ld.%09ld ns\n", >- (int)dn, delta.tv_sec, delta.tv_nsec); >+ fprintf(stderr, " - %d pkts in %jd.%09ld ns\n", >+ (int)dn, (__intmax_t)delta.tv_sec, delta.tv_nsec); > c1 = c0; > bc1 = bc0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 178862
: 134216