summaryrefslogtreecommitdiffstats
path: root/examples/network/torrent/trackerclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/torrent/trackerclient.cpp')
-rw-r--r--examples/network/torrent/trackerclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/torrent/trackerclient.cpp b/examples/network/torrent/trackerclient.cpp
index 77a4577074..12110ba0ae 100644
--- a/examples/network/torrent/trackerclient.cpp
+++ b/examples/network/torrent/trackerclient.cpp
@@ -153,7 +153,7 @@ void TrackerClient::httpRequestDone(QNetworkReply *reply)
// Mandatory item
if (requestIntervalTimer != -1)
killTimer(requestIntervalTimer);
- requestIntervalTimer = startTimer(dict.value("interval").toInt() * 1000);
+ requestIntervalTimer = startTimer(std::chrono::seconds(dict.value("interval").toInt()));
}
if (dict.contains("peers")) {