From bda603e4d1d963f499b2f1a13d16c5a23e9f0246 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 29 Jun 2020 15:17:32 +0200 Subject: Reduce number of 'frame received' messages --- src/AVTInput.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/AVTInput.cpp') diff --git a/src/AVTInput.cpp b/src/AVTInput.cpp index df8112c..955ca33 100644 --- a/src/AVTInput.cpp +++ b/src/AVTInput.cpp @@ -532,13 +532,9 @@ void AVTInput::_info(_frameType type, size_t size) } if (_lastInfoFrameType != _typeCantExtract) { _infoNbFrame++; - if ( (_infoNbFrame == 100) || - (_infoNbFrame < 10000 && _infoNbFrame % 1000 == 0) || - (_infoNbFrame < 100000 && _infoNbFrame % 10000 == 0) || - (_infoNbFrame % 100000 == 0) - ) + if (_infoNbFrame == 100 or _infoNbFrame % 100000 == 0) { - INFO("%zu 24ms-frames received\n", _infoNbFrame); + INFO("Startup ok, %zu 24ms-frames received\n", _infoNbFrame); } } } -- cgit v1.2.3