Index: stat.c
===================================================================
RCS file: /v/noc/src/CVSROOT/snmpstat/snmpstatd/stat.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** stat.c	1999/07/19 18:38:32	1.1
--- stat.c	1999/08/19 18:33:46	1.2
***************
*** 22,29 ****
   * Author: Vadim Antonov
   *
   * $Log: patch1,v $
   * Revision 1.1  1999/08/19 19:16:04  monitor
   * xx
   *
!  * Revision 1.1  1999/07/19 18:38:32  alex
!  * Initial revision
   *
   * Revision 1.7  1999/05/11 15:24:01  alex
   * *** empty log message ***
--- 22,32 ----
   * Author: Vadim Antonov
   *
   * $Log: patch1,v $
   * Revision 1.1  1999/08/19 19:16:04  monitor
   * xx
   *
!  * Revision 1.2  1999/08/19 18:33:46  alex
!  * The ATM/INACTIVE bug fixed
!  *
!  * Revision 1.1.1.1  1999/07/19 18:38:32  alex
!  * First revision in cvs
   *
   * Revision 1.7  1999/05/11 15:24:01  alex
   * *** empty log message ***
***************
*** 63,69 ****
   *
   */
  #ifndef lint
! static char rcsid[] = "$Id: patch1,v 1.1 1999/08/19 19:16:04 monitor Exp $";
  #endif
  
  #include "manifest.h"
--- 66,72 ----
   *
   */
  #ifndef lint
! static char rcsid[] = "$Id: patch1,v 1.1 1999/08/19 19:16:04 monitor Exp $";
  #endif
  
  #include "manifest.h"
***************
*** 123,130 ****
--- 126,138 ----
  	    && ( (i->i_icmode==IC_INACTIVE_ATM || i->i_cs.l_OutUcastPkts+i->i_cs.l_OutNUcastPkts) != (i->i_ps.l_OutUcastPkts + i->i_ps.l_OutNUcastPkts)) )
  	 {
  	 	i->i_cs.l_OperStatus = IF_INACTIVE; 
+ 		if ( i->i_ps.l_OperStatus != IF_INACTIVE )
+ 		       i->i_cs.l_LastChange = g->g_uptime;
  		dprintf(("Forced to INACTIVE: %s at %s\n",i->i_name,g->g_name));
  	 };
+ 	 /* Emulate LastChange time if INACTIVE->UP */
+ 	 if ( i->i_cs.l_OperStatus != IF_INACTIVE && i->i_ps.l_OperStatus == IF_INACTIVE )
+ 		i->i_cs.l_LastChange = g->g_uptime;
  			    
  
  	/*  Report changes in link status */
