Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Rantanen <jubjub@jubjubnest.net>2019-10-28 03:39:48 +0300
committerMikko Rantanen <jubjub@jubjubnest.net>2019-10-28 03:50:12 +0300
commitd50a20fc53209be598603582e3414f140ea7a944 (patch)
treef5f53740fbc7aadb05b707d77897aba6d80293bf /src/murmur/ServerUser.h
parent856eefa9ba6deb79bf1da1e0a7379e7fb88ae187 (diff)
Use QDateTime to avoid time underflow
Diffstat (limited to 'src/murmur/ServerUser.h')
-rw-r--r--src/murmur/ServerUser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/murmur/ServerUser.h b/src/murmur/ServerUser.h
index c0766594c..6a4b685aa 100644
--- a/src/murmur/ServerUser.h
+++ b/src/murmur/ServerUser.h
@@ -18,7 +18,7 @@
#include "HostAddress.h"
#include <QtCore/QStringList>
-#include <QtCore/QTime>
+#include <QtCore/QDateTime>
#ifdef Q_OS_WIN
# include <winsock2.h>
@@ -67,7 +67,7 @@ class LeakyBucket {
private:
unsigned int tokensPerSec, maxTokens;
long currentTokens;
- QTime lastUpdate;
+ QDateTime lastUpdate;
public:
// Returns true if packets should be dropped