Changeset 5168 for trunk/module-stat.c
- Timestamp:
- 05/04/11 08:33:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-stat.c
r5135 r5168 451 451 stat->ecm_count > 0) { 452 452 stat->rc = 5; 453 inc_fail(stat);453 //inc_fail(stat); //do not inc fail factor in this case 454 454 } 455 455 else if ((rdr->client->login+(int)(2*cfg.ctimeout/1000)) < ctime && rdr->client->pending < 5) { //reader is longer than 5s connected && not more then 5 pending ecms … … 577 577 static int32_t get_reopen_seconds(READER_STAT *stat) 578 578 { 579 int32_t max = (INT_MAX / cfg.lb_reopen_seconds) - 1;579 int32_t max = (INT_MAX / cfg.lb_reopen_seconds); 580 580 if (stat->fail_factor > max) 581 581 stat->fail_factor = max; 582 return (stat->fail_factor+1) * cfg.lb_reopen_seconds; 582 if (!stat->fail_factor) 583 return cfg.lb_reopen_seconds; 584 return stat->fail_factor * cfg.lb_reopen_seconds; 583 585 } 584 586
Note:
See TracChangeset
for help on using the changeset viewer.