diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-01-04 04:44:50 +0800 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-01-04 04:44:50 +0800 |
commit | c7541f8c03192f4804031c78abb24f9c8d980a49 (patch) | |
tree | 9e547449b0bb33b0fc2871b6946a51c50dbc0f7e /benchmarks | |
parent | e6b7d17b63adc0c5ebf8a47e4a4f1786476e45ca (diff) | |
download | freebsd-ports-gnome-c7541f8c03192f4804031c78abb24f9c8d980a49.tar.gz freebsd-ports-gnome-c7541f8c03192f4804031c78abb24f9c8d980a49.tar.zst freebsd-ports-gnome-c7541f8c03192f4804031c78abb24f9c8d980a49.zip |
Fix build on armv6
PR: 251448
Submitted by: Martin Birgmeier <d8zNeCFG@aon.at>
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/iperf/files/patch-src-Settings.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/benchmarks/iperf/files/patch-src-Settings.cpp b/benchmarks/iperf/files/patch-src-Settings.cpp index eda92f01bf13..7b96b76c0d10 100644 --- a/benchmarks/iperf/files/patch-src-Settings.cpp +++ b/benchmarks/iperf/files/patch-src-Settings.cpp @@ -9,3 +9,39 @@ // 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); +@@ -1731,13 +1731,13 @@ int Settings_GenerateClientHdr (struct thread_Settings + if (isFullDuplex(client) || isReverse(client)) { + upperflags |= HEADER_ISOCH_SETTINGS; + hdr->isoch_settings.FPSl = htonl((long)(client->mFPS)); +- hdr->isoch_settings.FPSu = htonl(((client->mFPS - (long)(client->mFPS)) * rMillion)); ++ hdr->isoch_settings.FPSu = htonl((long)((client->mFPS - (long)(client->mFPS)) * rMillion)); + hdr->isoch_settings.Meanl = htonl((long)(client->mMean)); +- hdr->isoch_settings.Meanu = htonl((((client->mMean) - (long)(client->mMean)) * rMillion)); ++ hdr->isoch_settings.Meanu = htonl((long)(((client->mMean) - (long)(client->mMean)) * rMillion)); + hdr->isoch_settings.Variancel = htonl((long)(client->mVariance)); +- hdr->isoch_settings.Varianceu = htonl(((client->mVariance - (long)(client->mVariance)) * rMillion)); ++ hdr->isoch_settings.Varianceu = htonl((long)((client->mVariance - (long)(client->mVariance)) * rMillion)); + hdr->isoch_settings.BurstIPGl = htonl((long)(client->mBurstIPG)); +- hdr->isoch_settings.BurstIPGu = htonl(((client->mBurstIPG - (long)(client->mBurstIPG)) * rMillion)); ++ hdr->isoch_settings.BurstIPGu = htonl((long)((client->mBurstIPG - (long)(client->mBurstIPG)) * rMillion)); + len += sizeof(struct client_hdrext_isoch_settings); + } + } +@@ -1822,13 +1822,13 @@ int Settings_GenerateClientHdr (struct thread_Settings + upperflags |= HEADER_ISOCH; + if (isFullDuplex(client) || isReverse(client)) { + upperflags |= HEADER_ISOCH_SETTINGS; +- hdr->isoch_settings.FPSl = htonl(client->mFPS); ++ hdr->isoch_settings.FPSl = htonl((long)client->mFPS); + hdr->isoch_settings.FPSu = htonl(((long)(client->mFPS) - (long)client->mFPS * rMillion)); +- hdr->isoch_settings.Meanl = htonl(client->mMean); ++ hdr->isoch_settings.Meanl = htonl((long)client->mMean); + hdr->isoch_settings.Meanu = htonl(((long)(client->mMean) - (long)client->mMean * rMillion)); +- hdr->isoch_settings.Variancel = htonl(client->mVariance); ++ hdr->isoch_settings.Variancel = htonl((long)client->mVariance); + hdr->isoch_settings.Varianceu = htonl(((long)(client->mVariance) - (long)client->mVariance * rMillion)); +- hdr->isoch_settings.BurstIPGl = htonl(client->mBurstIPG); ++ hdr->isoch_settings.BurstIPGl = htonl((long)client->mBurstIPG); + hdr->isoch_settings.BurstIPGu = htonl(((long)(client->mBurstIPG) - (long)client->mBurstIPG * rMillion)); + len += sizeof(struct client_hdrext_isoch_settings); + } |