Changeset 46
- Timestamp:
- 05/22/07 21:48:53
(2 years ago)
- Author:
- csellers
- Message:
oops, previous checkin doens't work when there is not previous failure. this fixes it
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r45 |
r46 |
|
| 574 | 574 | } |
|---|
| 575 | 575 | |
|---|
| 576 | | last_fail = (tally.fail_cnt>TALLYLOG_FAIL_TIME_COUNT) ? |
|---|
| 577 | | TALLYLOG_FAIL_TIME_COUNT-1 : |
|---|
| 578 | | tally.fail_cnt-1; |
|---|
| | 576 | if (tally.fail_cnt) { |
|---|
| | 577 | last_fail = (tally.fail_cnt>TALLYLOG_FAIL_TIME_COUNT) ? |
|---|
| | 578 | TALLYLOG_FAIL_TIME_COUNT-1 : |
|---|
| | 579 | tally.fail_cnt-1; |
|---|
| | 580 | } |
|---|
| | 581 | else { |
|---|
| | 582 | last_fail = 0; |
|---|
| | 583 | } |
|---|
| 579 | 584 | |
|---|
| 580 | 585 | /* to remember old fail time (for locktime) */ |
|---|
| 581 | | if (oldtime && last_fail >= 0) { |
|---|
| | 586 | if (oldtime) { |
|---|
| 582 | 587 | *oldtime = (time_t)tally.fail_time[last_fail]; |
|---|
| 583 | 588 | } |
|---|
| 584 | 589 | |
|---|
| 585 | 590 | last_fail = (tally.fail_cnt>=TALLYLOG_FAIL_TIME_COUNT) ? |
|---|
| 586 | | TALLYLOG_FAIL_TIME_COUNT-1 : |
|---|
| 587 | | tally.fail_cnt; |
|---|
| | 591 | TALLYLOG_FAIL_TIME_COUNT-1 : |
|---|
| | 592 | tally.fail_cnt; |
|---|
| 588 | 593 | |
|---|
| 589 | 594 | tally.fail_time[last_fail] = time(NULL); |
|---|
Download in other formats:
* Generating other formats may take time.