From 7b6e78c9a3b468cdb20541d9352485ef62163cfa Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 20 Nov 2015 20:33:05 +0300 Subject: consider only rx interface counter for idle timeout calculation --- accel-pppd/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd') 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) -- cgit v1.2.3