diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-26 13:01:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-26 13:01:42 +0300 |
commit | 6a9b7eb45844274b0a4b6d52f7f32aa724541468 (patch) | |
tree | 80115f7d95ed9881c1eb9701dd632bb5aa1c9dc5 /src/net/packetcounters.cpp | |
parent | c87f02c075919337018b534b6f8ef2c97160c883 (diff) | |
download | plus-6a9b7eb45844274b0a4b6d52f7f32aa724541468.tar.gz plus-6a9b7eb45844274b0a4b6d52f7f32aa724541468.tar.bz2 plus-6a9b7eb45844274b0a4b6d52f7f32aa724541468.tar.xz plus-6a9b7eb45844274b0a4b6d52f7f32aa724541468.zip |
add restrict into packetcounters.
Diffstat (limited to 'src/net/packetcounters.cpp')
-rw-r--r-- | src/net/packetcounters.cpp | 4 |
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 ¤tSec, 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) |