Commit 2bcc4457 authored by rmcmahon's avatar rmcmahon
Browse files

add isoch warning message when mean is too small

parent 38a72241
...@@ -416,6 +416,9 @@ void reporter_reportsettings( ReporterData *data ) { ...@@ -416,6 +416,9 @@ void reporter_reportsettings( ReporterData *data ) {
byte_snprintf(meanbuf, sizeof(meanbuf), data->isochstats.mMean, 'a'); byte_snprintf(meanbuf, sizeof(meanbuf), data->isochstats.mMean, 'a');
byte_snprintf(variancebuf, sizeof(variancebuf), data->isochstats.mVariance, '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)); 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 #else
fprintf(stderr, "--isochronous not supportted, try --enable-isochronous during config and remake\n"); fprintf(stderr, "--isochronous not supportted, try --enable-isochronous during config and remake\n");
#endif #endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment