Made statistics and userpages independant of each other.
This commit is contained in:
parent
80b905965e
commit
1206b76b4a
1 changed files with 18 additions and 19 deletions
|
@ -626,26 +626,25 @@ namespace Mist {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Output::stats(){
|
void Output::stats(){
|
||||||
if (!statsPage.getData()){
|
if (statsPage.getData()){
|
||||||
return;
|
unsigned long long int now = Util::epoch();
|
||||||
}
|
if (now != lastStats){
|
||||||
unsigned long long int now = Util::epoch();
|
lastStats = now;
|
||||||
if (now != lastStats){
|
IPC::statExchange tmpEx(statsPage.getData());
|
||||||
lastStats = now;
|
tmpEx.now(now);
|
||||||
IPC::statExchange tmpEx(statsPage.getData());
|
tmpEx.host(myConn.getHost());
|
||||||
tmpEx.now(now);
|
tmpEx.streamName(streamName);
|
||||||
tmpEx.host(myConn.getHost());
|
tmpEx.connector(capa["name"].asString());
|
||||||
tmpEx.streamName(streamName);
|
tmpEx.up(myConn.dataUp());
|
||||||
tmpEx.connector(capa["name"].asString());
|
tmpEx.down(myConn.dataDown());
|
||||||
tmpEx.up(myConn.dataUp());
|
tmpEx.time(now - myConn.connTime());
|
||||||
tmpEx.down(myConn.dataDown());
|
if (currentPacket){
|
||||||
tmpEx.time(now - myConn.connTime());
|
tmpEx.lastSecond(currentPacket.getTime());
|
||||||
if (currentPacket){
|
}else{
|
||||||
tmpEx.lastSecond(currentPacket.getTime());
|
tmpEx.lastSecond(0);
|
||||||
}else{
|
}
|
||||||
tmpEx.lastSecond(0);
|
statsPage.keepAlive();
|
||||||
}
|
}
|
||||||
statsPage.keepAlive();
|
|
||||||
}
|
}
|
||||||
int tNum = 0;
|
int tNum = 0;
|
||||||
if (!playerConn.getData()){
|
if (!playerConn.getData()){
|
||||||
|
|
Loading…
Add table
Reference in a new issue