mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Fixed a bug where input packets were counted twice - messing up the
stats.
This commit is contained in:
parent
7019f59e32
commit
ced5461ebe
2 changed files with 2 additions and 4 deletions
|
|
@ -27,7 +27,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_fxp.c,v 1.42 1997/09/30 10:50:45 davidg Exp $
|
||||
* $Id: if_fxp.c,v 1.43 1997/09/30 11:28:24 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
@ -1053,7 +1053,6 @@ fxp_stats_update(arg)
|
|||
|
||||
ifp->if_opackets += sp->tx_good;
|
||||
ifp->if_collisions += sp->tx_total_collisions;
|
||||
ifp->if_ipackets += sp->rx_good;
|
||||
if (sp->rx_good) {
|
||||
ifp->if_ipackets += sp->rx_good;
|
||||
sc->rx_idle_secs = 0;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_fxp.c,v 1.42 1997/09/30 10:50:45 davidg Exp $
|
||||
* $Id: if_fxp.c,v 1.43 1997/09/30 11:28:24 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
@ -1053,7 +1053,6 @@ fxp_stats_update(arg)
|
|||
|
||||
ifp->if_opackets += sp->tx_good;
|
||||
ifp->if_collisions += sp->tx_total_collisions;
|
||||
ifp->if_ipackets += sp->rx_good;
|
||||
if (sp->rx_good) {
|
||||
ifp->if_ipackets += sp->rx_good;
|
||||
sc->rx_idle_secs = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue