Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2018-10-15 11:19:32 +02:00
commit cdaf7920b0

View file

@ -673,13 +673,13 @@ void Controller::statSession::ping(const Controller::sessIndex & index, unsigned
if (lastSec < disconnectPoint){ if (lastSec < disconnectPoint){
switch (sessionType){ switch (sessionType){
case SESS_INPUT: case SESS_INPUT:
streamStats[index.streamName].currIns--; if (streamStats[index.streamName].currIns){streamStats[index.streamName].currIns--;}
break; break;
case SESS_OUTPUT: case SESS_OUTPUT:
streamStats[index.streamName].currOuts--; if (streamStats[index.streamName].currOuts){streamStats[index.streamName].currOuts--;}
break; break;
case SESS_VIEWER: case SESS_VIEWER:
streamStats[index.streamName].currViews--; if (streamStats[index.streamName].currViews){streamStats[index.streamName].currViews--;}
break; break;
} }
uint64_t duration = lastSec - firstActive; uint64_t duration = lastSec - firstActive;