diff --git a/branches/sys_nicmonitor-1.6/mnic.c b/branches/sys_nicmonitor-1.6/mnic.c index a7b8f79..ec574f2 100755 --- a/branches/sys_nicmonitor-1.6/mnic.c +++ b/branches/sys_nicmonitor-1.6/mnic.c @@ -454,7 +454,7 @@ static void *send_inc_info(void *p) while(1){ i = 0; get_sem(ptr->semid); - memset(ptr->shm_ptr, 0, sizeof(SHM)); + // memset(ptr->shm_ptr, 0, sizeof(SHM)); curr = ptr->listp->next; while(curr != NULL){ get_inc_info(&curr->info); @@ -643,7 +643,7 @@ int ping_gw(char *devname) return 0; }else{ fgets(getbuf,sizeof(getbuf),fp); - if(strncmp(getbuf,"1",1) == 0) + if(strncmp(getbuf,"0",1) != 0) { pclose(fp); return 0;