summaryrefslogtreecommitdiffstats
path: root/examples/network/torrent/connectionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/torrent/connectionmanager.cpp')
-rw-r--r--examples/network/torrent/connectionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/torrent/connectionmanager.cpp b/examples/network/torrent/connectionmanager.cpp
index d7b0418619..87b7a16e28 100644
--- a/examples/network/torrent/connectionmanager.cpp
+++ b/examples/network/torrent/connectionmanager.cpp
@@ -86,7 +86,7 @@ QByteArray ConnectionManager::clientId() const
{
if (id.isEmpty()) {
// Generate peer id
- int startupTime = int(QDateTime::currentDateTime().toTime_t());
+ qint64 startupTime = QDateTime::currentSecsSinceEpoch();
id += QString::asprintf("-QT%04x-", QT_VERSION >> 8).toLatin1();
id += QByteArray::number(startupTime, 10);