xp-sp3: change grammer to support Qt5.6.3 for xp with sp3 system.
This commit is contained in:
@@ -63,7 +63,8 @@ void Server::onNewConnection()
|
||||
client->socket = clientSocket;
|
||||
client->socket->setProperty("clientId", clientId);
|
||||
client->id = clientId;
|
||||
client->connectTime = QDateTime::currentSecsSinceEpoch();
|
||||
// client->connectTime = QDateTime::currentSecsSinceEpoch();
|
||||
client->connectTime = QDateTime::currentDateTime().toMSecsSinceEpoch() / 1000;
|
||||
|
||||
connect(clientSocket, &QTcpSocket::readyRead, this, &Server::onReadyRead);
|
||||
connect(clientSocket, &QTcpSocket::disconnected, this, &Server::onClientDisconnected);
|
||||
@@ -198,7 +199,8 @@ bool Server::sendData(QTcpSocket* socket, QSharedPointer<FrameBuffer> frame)
|
||||
|
||||
void Server::monitorClients()
|
||||
{
|
||||
qint64 now = QDateTime::currentSecsSinceEpoch();
|
||||
// qint64 now = QDateTime::currentSecsSinceEpoch();
|
||||
qint64 now = QDateTime::currentDateTime().toMSecsSinceEpoch() / 1000;
|
||||
QWriteLocker locker(&rwLock_);
|
||||
|
||||
for (auto it = clients_.begin(); it != clients_.end();) {
|
||||
|
||||
Reference in New Issue
Block a user