fillActive now 15 seconds delayed as opposed to 2 seconds delayed, for more accurate viewer counts.

This commit is contained in:
Thulinma 2016-04-13 15:20:23 +02:00
parent 4c2eeb96c8
commit 230772f125

View file

@ -638,7 +638,7 @@ void Controller::fillActive(JSON::Value & req, JSON::Value & rep, bool onlyNow){
//collect the data first
std::set<std::string> streams;
std::map<std::string, unsigned long> clients;
unsigned int t = Util::epoch() - 2;
unsigned int t = Util::epoch() - 15;
//check all sessions
if (sessions.size()){
for (std::map<sessIndex, statSession>::iterator it = sessions.begin(); it != sessions.end(); it++){