From 0d9ff7da2e9893e2f72293877bb8bdb7e26e69fe Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 13 Nov 2018 16:48:20 +0100 Subject: [PATCH] Viewer counter fix --- src/controller/controller_statistics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controller/controller_statistics.cpp b/src/controller/controller_statistics.cpp index 438b4d32..72bbbf2b 100644 --- a/src/controller/controller_statistics.cpp +++ b/src/controller/controller_statistics.cpp @@ -341,6 +341,12 @@ void Controller::statSession::ping(const Controller::sessIndex & index, unsigned if (duration < 1){duration = 1;} Controller::logAccess("", index.streamName, index.connector, index.host, duration, getUp(), getDown(), ""); tracked = false; + firstActive = 0; + firstSec = 0xFFFFFFFFFFFFFFFFull; + lastSec = 0; + wipedUp = 0; + wipedDown = 0; + oldConns.clear(); } }