mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[idd] logging: make periodic statistics opt-in
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "transport/lgmp/CLGMPInputTransport.h"
|
||||
|
||||
#include "config/CSettings.h"
|
||||
#include "transport/lgmp/CLGMPHost.h"
|
||||
#include "Atomic.h"
|
||||
#include "CDebug.h"
|
||||
@@ -644,6 +645,9 @@ void CLGMPInputTransport::LogStatistics(ULONGLONG now)
|
||||
!statistics.releases && !statistics.deliveryFailures)
|
||||
return;
|
||||
|
||||
if (!g_settings.ShouldLogStatistics())
|
||||
return;
|
||||
|
||||
const double elapsed =
|
||||
static_cast<double>(now - statistics.lastLog) / 1000.0;
|
||||
DEBUG_TRACE("LGMP input host: %.1f msg/s, %llu reports, "
|
||||
|
||||
Reference in New Issue
Block a user