Made statistics and userpages independant of each other.

This commit is contained in:
Thulinma 2014-06-20 11:05:04 +02:00
parent 80b905965e
commit 1206b76b4a

View file

@ -626,9 +626,7 @@ namespace Mist {
} }
void Output::stats(){ void Output::stats(){
if (!statsPage.getData()){ if (statsPage.getData()){
return;
}
unsigned long long int now = Util::epoch(); unsigned long long int now = Util::epoch();
if (now != lastStats){ if (now != lastStats){
lastStats = now; lastStats = now;
@ -647,6 +645,7 @@ namespace Mist {
} }
statsPage.keepAlive(); statsPage.keepAlive();
} }
}
int tNum = 0; int tNum = 0;
if (!playerConn.getData()){ if (!playerConn.getData()){
playerConn = IPC::sharedClient(streamName + "_users", 30, true); playerConn = IPC::sharedClient(streamName + "_users", 30, true);