@@ -1997,10 +1997,10 @@ void Server::msgPing(ServerUser *uSource, MumbleProto::Ping &msg) {
1997
1997
1998
1998
QMutexLocker l (&uSource->qmCrypt );
1999
1999
2000
- uSource->csCrypt ->uiRemoteGood = msg.good ();
2001
- uSource->csCrypt ->uiRemoteLate = msg.late ();
2002
- uSource->csCrypt ->uiRemoteLost = msg.lost ();
2003
- uSource->csCrypt ->uiRemoteResync = msg.resync ();
2000
+ uSource->csCrypt ->m_statsRemote . good = msg.good ();
2001
+ uSource->csCrypt ->m_statsRemote . late = msg.late ();
2002
+ uSource->csCrypt ->m_statsRemote . lost = msg.lost ();
2003
+ uSource->csCrypt ->m_statsRemote . resync = msg.resync ();
2004
2004
2005
2005
uSource->dUDPPingAvg = msg.udp_ping_avg ();
2006
2006
uSource->dUDPPingVar = msg.udp_ping_var ();
@@ -2013,10 +2013,10 @@ void Server::msgPing(ServerUser *uSource, MumbleProto::Ping &msg) {
2013
2013
2014
2014
msg.Clear ();
2015
2015
msg.set_timestamp (ts);
2016
- msg.set_good (uSource->csCrypt ->uiGood );
2017
- msg.set_late (uSource->csCrypt ->uiLate );
2018
- msg.set_lost (uSource->csCrypt ->uiLost );
2019
- msg.set_resync (uSource->csCrypt ->uiResync );
2016
+ msg.set_good (uSource->csCrypt ->m_statsLocal . good );
2017
+ msg.set_late (uSource->csCrypt ->m_statsLocal . late );
2018
+ msg.set_lost (uSource->csCrypt ->m_statsLocal . lost );
2019
+ msg.set_resync (uSource->csCrypt ->m_statsLocal . resync );
2020
2020
2021
2021
sendMessage (uSource, msg);
2022
2022
}
@@ -2034,7 +2034,7 @@ void Server::msgCryptSetup(ServerUser *uSource, MumbleProto::CryptSetup &msg) {
2034
2034
sendMessage (uSource, msg);
2035
2035
} else {
2036
2036
const std::string &str = msg.client_nonce ();
2037
- uSource->csCrypt ->uiResync ++;
2037
+ uSource->csCrypt ->m_statsLocal . resync ++;
2038
2038
if (!uSource->csCrypt ->setDecryptIV (str)) {
2039
2039
qWarning (" Messages: Cipher resync failed: Invalid nonce from the client!" );
2040
2040
}
@@ -2275,16 +2275,16 @@ void Server::msgUserStats(ServerUser *uSource, MumbleProto::UserStats &msg) {
2275
2275
QMutexLocker l (&pDstServerUser->qmCrypt );
2276
2276
2277
2277
mpusss = msg.mutable_from_client ();
2278
- mpusss->set_good (pDstServerUser->csCrypt ->uiGood );
2279
- mpusss->set_late (pDstServerUser->csCrypt ->uiLate );
2280
- mpusss->set_lost (pDstServerUser->csCrypt ->uiLost );
2281
- mpusss->set_resync (pDstServerUser->csCrypt ->uiResync );
2278
+ mpusss->set_good (pDstServerUser->csCrypt ->m_statsLocal . good );
2279
+ mpusss->set_late (pDstServerUser->csCrypt ->m_statsLocal . late );
2280
+ mpusss->set_lost (pDstServerUser->csCrypt ->m_statsLocal . lost );
2281
+ mpusss->set_resync (pDstServerUser->csCrypt ->m_statsLocal . resync );
2282
2282
2283
2283
mpusss = msg.mutable_from_server ();
2284
- mpusss->set_good (pDstServerUser->csCrypt ->uiRemoteGood );
2285
- mpusss->set_late (pDstServerUser->csCrypt ->uiRemoteLate );
2286
- mpusss->set_lost (pDstServerUser->csCrypt ->uiRemoteLost );
2287
- mpusss->set_resync (pDstServerUser->csCrypt ->uiRemoteResync );
2284
+ mpusss->set_good (pDstServerUser->csCrypt ->m_statsRemote . good );
2285
+ mpusss->set_late (pDstServerUser->csCrypt ->m_statsRemote . late );
2286
+ mpusss->set_lost (pDstServerUser->csCrypt ->m_statsRemote . lost );
2287
+ mpusss->set_resync (pDstServerUser->csCrypt ->m_statsRemote . resync );
2288
2288
}
2289
2289
2290
2290
msg.set_udp_packets (pDstServerUser->uiUDPPackets );
0 commit comments