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, 3 insertions, 1 deletions
diff --git a/src/net/packetcounters.cpp b/src/net/packetcounters.cpp
index 65ece62f8..8a87fc9bb 100644
--- a/src/net/packetcounters.cpp
+++ b/src/net/packetcounters.cpp
@@ -104,7 +104,9 @@ int PacketCounters::getOutPackets()
}
-void PacketCounters::updateCounter(int &currentSec, int &calc, int &counter)
+void PacketCounters::updateCounter(int &restrict currentSec,
+ int &restrict calc,
+ int &restrict counter)
{
const int idx = cur_time % 60;
if (currentSec != idx)