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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/packetcounters.cpp b/src/net/packetcounters.cpp
index dc504768e..6fb8588fe 100644
--- a/src/net/packetcounters.cpp
+++ b/src/net/packetcounters.cpp
@@ -106,7 +106,7 @@ int PacketCounters::getOutPackets()
void PacketCounters::updateCounter(int &currentSec, int &calc, int &counter)
{
- int idx = cur_time % 60;
+ const int idx = cur_time % 60;
if (currentSec != idx)
{
currentSec = idx;