Fixed lastSecond statistic in output.cpp
This commit is contained in:
parent
275825571c
commit
00d1dfb1e5
1 changed files with 5 additions and 0 deletions
|
@ -640,6 +640,11 @@ namespace Mist {
|
||||||
tmpEx.up(myConn.dataUp());
|
tmpEx.up(myConn.dataUp());
|
||||||
tmpEx.down(myConn.dataDown());
|
tmpEx.down(myConn.dataDown());
|
||||||
tmpEx.time(now - myConn.connTime());
|
tmpEx.time(now - myConn.connTime());
|
||||||
|
if (currentPacket){
|
||||||
|
tmpEx.lastSecond(currentPacket.getTime());
|
||||||
|
}else{
|
||||||
|
tmpEx.lastSecond(0);
|
||||||
|
}
|
||||||
statsPage.keepAlive();
|
statsPage.keepAlive();
|
||||||
}
|
}
|
||||||
int tNum = 0;
|
int tNum = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue