Fixing timestamp
parent
e5e41e6d3d
commit
4d391f10ad
|
|
@ -38,7 +38,7 @@ TransportClient::TransportClient(TransportInterface *interface, const QUuid &cli
|
||||||
m_clientId(clientId),
|
m_clientId(clientId),
|
||||||
m_peerAddress(address)
|
m_peerAddress(address)
|
||||||
{
|
{
|
||||||
m_creationTimeStamp = QDateTime::currentDateTimeUtc().toMSecsSinceEpoch() / 1000;
|
m_creationTimeStamp = QDateTime::currentDateTime().toMSecsSinceEpoch() / 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
QUuid TransportClient::clientId() const
|
QUuid TransportClient::clientId() const
|
||||||
|
|
@ -51,7 +51,7 @@ QHostAddress TransportClient::peerAddress() const
|
||||||
return m_peerAddress;
|
return m_peerAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint TransportClient::creationTime() const
|
quint64 TransportClient::creationTime() const
|
||||||
{
|
{
|
||||||
return m_creationTimeStamp;
|
return m_creationTimeStamp;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public:
|
||||||
QUuid clientId() const;
|
QUuid clientId() const;
|
||||||
QHostAddress peerAddress() const;
|
QHostAddress peerAddress() const;
|
||||||
|
|
||||||
uint creationTime() const;
|
quint64 creationTime() const;
|
||||||
QString creationTimeString() const;
|
QString creationTimeString() const;
|
||||||
|
|
||||||
// Schedule a disconnect after the response
|
// Schedule a disconnect after the response
|
||||||
|
|
@ -94,7 +94,7 @@ protected:
|
||||||
|
|
||||||
QUuid m_clientId;
|
QUuid m_clientId;
|
||||||
QHostAddress m_peerAddress;
|
QHostAddress m_peerAddress;
|
||||||
uint m_creationTimeStamp = 0;
|
quint64 m_creationTimeStamp = 0;
|
||||||
|
|
||||||
// Eveyone has to register him self everywhere with a name and a uuid
|
// Eveyone has to register him self everywhere with a name and a uuid
|
||||||
QString m_name;
|
QString m_name;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue