summaryrefslogtreecommitdiff
path: root/src/net/packetcounters.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-09 19:41:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-09 19:41:31 +0300
commit97943710d847ddb2b52099330f1961bda127e37b (patch)
treeab2522aab524c3393a6dd4f1d51811d3eac9984e /src/net/packetcounters.cpp
parent22d0a32e03656262a7a5cccb3769aed59bfe0a5b (diff)
downloadplus-97943710d847ddb2b52099330f1961bda127e37b.tar.gz
plus-97943710d847ddb2b52099330f1961bda127e37b.tar.bz2
plus-97943710d847ddb2b52099330f1961bda127e37b.tar.xz
plus-97943710d847ddb2b52099330f1961bda127e37b.zip
Fix code style.
Diffstat (limited to 'src/net/packetcounters.cpp')
-rw-r--r--src/net/packetcounters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/packetcounters.cpp b/src/net/packetcounters.cpp
index f29bb890c..7d28ab3be 100644
--- a/src/net/packetcounters.cpp
+++ b/src/net/packetcounters.cpp
@@ -108,7 +108,7 @@ void PacketCounters::updateCounter(int &restrict currentSec,
int &restrict calc,
int &restrict counter)
{
- const time_t idx = cur_time % 60;
+ const int idx = CAST_S32(cur_time % 60);
if (currentSec != idx)
{
currentSec = idx;