diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-11-20 20:33:05 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-11-20 20:33:05 +0300 |
commit | 7b6e78c9a3b468cdb20541d9352485ef62163cfa (patch) | |
tree | 0da7d34bb440c3557d31d849d5685a6d0db66032 | |
parent | 5cd2744f424c4228448834076bdad099927b05c7 (diff) | |
download | accel-ppp-7b6e78c9a3b468cdb20541d9352485ef62163cfa.tar.gz accel-ppp-7b6e78c9a3b468cdb20541d9352485ef62163cfa.zip |
consider only rx interface counter for idle timeout calculation
-rw-r--r-- | accel-pppd/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c index 247c0d77..f68ce7b7 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -360,7 +360,7 @@ int __export ap_session_read_stats(struct ap_session *ses, struct rtnl_link_stat stats->rx_bytes -= ses->acct_rx_bytes_i; stats->tx_bytes -= ses->acct_tx_bytes_i; - if (stats->rx_bytes != ses->acct_rx_bytes || stats->tx_bytes != ses->acct_tx_bytes) + if (stats->rx_bytes != ses->acct_rx_bytes) ses->idle_time = _time(); if (stats->rx_bytes < ses->acct_rx_bytes) |