summaryrefslogtreecommitdiff
path: root/src/net/packetcounters.cpp
diff options
context:
space:
mode:
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;