summaryrefslogtreecommitdiff
path: root/accel-pppd/vlan-mon
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2016-11-02 20:34:16 +0100
committerDmitry Kozlov <xeb@mail.ru>2016-11-12 10:34:45 +0300
commit938d3e852f8ef51f9f284e13e3a79c2f501f6d74 (patch)
treee6969f295e4279f46b79dc4a5ec2e53c769bee45 /accel-pppd/vlan-mon
parent1edce7b49f4f522d5b0238e27c3733becc2c0775 (diff)
downloadaccel-ppp-xebd-938d3e852f8ef51f9f284e13e3a79c2f501f6d74.tar.gz
accel-ppp-xebd-938d3e852f8ef51f9f284e13e3a79c2f501f6d74.zip
pppd-compat: move computation of tx_bytes and rx_bytes
tx_bytes and rx_bytes are only used in the ->stop_time branch, so let's compute them here rather than at the top of the function. Also, let's replace '4294967296llu' by 'UINT32_MAX + 1', to make it clear that a gigaword equals 2^32 bytes and is used to keep track of how many times the 32 bits tx and rx counters have overflowed. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/vlan-mon')
0 files changed, 0 insertions, 0 deletions