Date: Sun, 3 Jan 2021 20:30:07 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r560244 - head/benchmarks/iperf/files Message-ID: <202101032030.103KU7uQ028483@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sun Jan 3 20:30:07 2021 New Revision: 560244 URL: https://svnweb.freebsd.org/changeset/ports/560244 Log: Fix build on i386 PR: 252280 Reported by: Victor Sudakov <vas@sibptus.ru> Submitted by: dim Added: head/benchmarks/iperf/files/patch-src-Settings.cpp (contents, props changed) head/benchmarks/iperf/files/patch-src-histogram.c (contents, props changed) Added: head/benchmarks/iperf/files/patch-src-Settings.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/iperf/files/patch-src-Settings.cpp Sun Jan 3 20:30:07 2021 (r560244) @@ -0,0 +1,11 @@ +--- src/Settings.cpp.orig 2020-12-12 00:59:10 UTC ++++ src/Settings.cpp +@@ -1054,7 +1054,7 @@ void Settings_ModalOptions (struct thread_Settings *mE + bail = true; + } else if (isTxStartTime(mExtSettings) || isTxHoldback(mExtSettings)) { + Timestamp now; +- long nowsecs = now.getSecs(); ++ time_t nowsecs = now.getSecs(); + // fill out the formats in the event they are needed per an time error + char start_timebuf[80]; + struct tm ts = *localtime(&mExtSettings->txstart_epoch.tv_sec); Added: head/benchmarks/iperf/files/patch-src-histogram.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/benchmarks/iperf/files/patch-src-histogram.c Sun Jan 3 20:30:07 2021 (r560244) @@ -0,0 +1,16 @@ +--- src/histogram.c.orig 2020-11-30 18:53:55 UTC ++++ src/histogram.c +@@ -239,11 +239,11 @@ void histogram_print(struct histogram *h, double start + fprintf(stdout, "%s (%.2f/%.2f/99.7%%=%d/%d/%d,Outliers=%d,obl/obu=%d/%d)", \ + h->outbuf, h->ci_lower, h->ci_upper, lowerci, upperci, upper3stdev, outliercnt, oob_l, oob_u); + if (!h->final && (h->maxval > 0)) { +- fprintf(stdout, " (%0.3f ms/%ld.%ld)\n", (h->maxval * 1e3), h->maxts.tv_sec, (long) h->maxts.tv_usec); ++ fprintf(stdout, " (%0.3f ms/%ld.%ld)\n", (h->maxval * 1e3), (long) h->maxts.tv_sec, (long) h->maxts.tv_usec); + h->maxbin = -1; + h->maxval = 0; + } else if (h->final && (h->fmaxval > 0)) { +- fprintf(stdout, " (%0.3f ms/%ld.%ld)\n", (h->fmaxval * 1e3), h->fmaxts.tv_sec, (long) h->fmaxts.tv_usec); ++ fprintf(stdout, " (%0.3f ms/%ld.%ld)\n", (h->fmaxval * 1e3), (long) h->fmaxts.tv_sec, (long) h->fmaxts.tv_usec); + } else { + fprintf(stdout, "\n"); + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101032030.103KU7uQ028483>