Fixed a bug where input packets were counted twice - messing up the

stats.
This commit is contained in:
David Greenman 1997-10-17 06:27:44 +00:00
parent 7019f59e32
commit ced5461ebe
2 changed files with 2 additions and 4 deletions

View file

@ -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;

View file

@ -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;