Changeset 1687 for trunk/oscam-reader.c
- Timestamp:
- 02/25/10 13:24:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-reader.c
r1584 r1687 465 465 fd_set fds; 466 466 struct timeval tv; 467 468 if(reader[ridx].typ==R_GBOX){ 467 468 #ifdef CS_WITH_GBOX 469 if(reader[ridx].typ==R_GBOX) { 469 470 struct timeb tpe; 470 int x;471 ulong ms;472 cs_ftime(&tpe);473 for(x=0;x<CS_MAXPENDING;x++){474 ms=1000*(tpe.time-ecmtask[x].tps.time)+tpe.millitm-ecmtask[x].tps.millitm;475 if(ecmtask[x].rc == 10 && ms > cfg->ctimeout && ridx == ecmtask[x].gbxRidx){476 //cs_log("hello rc=%d idx:%d x:%d ridx%d ridx:%d",ecmtask[x].rc,ecmtask[x].idx,x,ridx,ecmtask[x].gbxRidx);477 ecmtask[x].rc=5;478 send_dcw(&ecmtask[x]);479 480 } 481 } 482 } 471 int x; 472 ulong ms; 473 cs_ftime(&tpe); 474 for(x=0;x<CS_MAXPENDING;x++){ 475 ms=1000*(tpe.time-ecmtask[x].tps.time)+tpe.millitm-ecmtask[x].tps.millitm; 476 if(ecmtask[x].rc == 10 && ms > cfg->ctimeout && ridx == ecmtask[x].gbxRidx) { 477 //cs_log("hello rc=%d idx:%d x:%d ridx%d ridx:%d",ecmtask[x].rc,ecmtask[x].idx,x,ridx,ecmtask[x].gbxRidx); 478 ecmtask[x].rc=5; 479 send_dcw(&ecmtask[x]); 480 } 481 } 482 } 483 #endif 483 484 484 485 if (master_pid!=getppid()) cs_exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.