summaryrefslogtreecommitdiff
path: root/src/net/packetcounters.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-29 01:24:49 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-29 01:24:49 +0300
commitca130a19b36a78c6a23aa56c6ea82eaa187b0a06 (patch)
treea22f311c5698f3f4ee370c0f1d3cb05230a1da95 /src/net/packetcounters.cpp
parenteeffaaf3ab0593f815e772bfb523b9e7a94d45f5 (diff)
downloadmanaplus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.gz
manaplus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.bz2
manaplus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.xz
manaplus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.zip
Use time_t for time values.
Diffstat (limited to 'src/net/packetcounters.cpp')
-rw-r--r--src/net/packetcounters.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/packetcounters.cpp b/src/net/packetcounters.cpp
index 13eae4701..f29bb890c 100644
--- a/src/net/packetcounters.cpp
+++ b/src/net/packetcounters.cpp
@@ -24,7 +24,7 @@
#include "debug.h"
-extern volatile int cur_time;
+extern volatile time_t cur_time;
extern volatile bool runCounters;
int PacketCounters::mInCurrentSec = 0;
@@ -108,7 +108,7 @@ void PacketCounters::updateCounter(int &restrict currentSec,
int &restrict calc,
int &restrict counter)
{
- const int idx = cur_time % 60;
+ const time_t idx = cur_time % 60;
if (currentSec != idx)
{
currentSec = idx;