Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Spencer Thomason
iperf2
Commits
2bcc4457
Commit
2bcc4457
authored
Oct 17, 2018
by
rmcmahon
Browse files
add isoch warning message when mean is too small
parent
38a72241
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ReportDefault.c
View file @
2bcc4457
...
...
@@ -416,6 +416,9 @@ void reporter_reportsettings( ReporterData *data ) {
byte_snprintf
(
meanbuf
,
sizeof
(
meanbuf
),
data
->
isochstats
.
mMean
,
'a'
);
byte_snprintf
(
variancebuf
,
sizeof
(
variancebuf
),
data
->
isochstats
.
mVariance
,
'a'
);
printf
(
client_udp_isochronous
,
data
->
isochstats
.
mFPS
,
meanbuf
,
variancebuf
,
(
data
->
isochstats
.
mBurstInterval
/
1000
.
0
),
(
data
->
isochstats
.
mBurstIPG
/
1000
.
0
));
if
((
data
->
isochstats
.
mMean
/
data
->
isochstats
.
mFPS
)
<
((
double
)
(
sizeof
(
UDP_datagram
)
+
sizeof
(
client_hdr_v1
)
+
sizeof
(
struct
client_hdr_udp_isoch_tests
))))
{
fprintf
(
stderr
,
"Warning: Requested mean too small to carry isoch payload, code will auto adjust payload sizes
\n
"
);
}
#else
fprintf
(
stderr
,
"--isochronous not supportted, try --enable-isochronous during config and remake
\n
"
);
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment