diff options
author | Mikko Rantanen <jubjub@jubjubnest.net> | 2019-10-28 03:39:48 +0300 |
---|---|---|
committer | Mikko Rantanen <jubjub@jubjubnest.net> | 2019-10-28 03:50:12 +0300 |
commit | d50a20fc53209be598603582e3414f140ea7a944 (patch) | |
tree | f5f53740fbc7aadb05b707d77897aba6d80293bf /src/murmur/ServerUser.h | |
parent | 856eefa9ba6deb79bf1da1e0a7379e7fb88ae187 (diff) |
Use QDateTime to avoid time underflow
Diffstat (limited to 'src/murmur/ServerUser.h')
-rw-r--r-- | src/murmur/ServerUser.h | 4 |
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 |