mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 02:27:31 -07:00
Replace one compare sign to make summands more generic
This commit is contained in:
parent
39cf5133a6
commit
1043a120d7
1 changed files with 1 additions and 1 deletions
2
hydra.c
2
hydra.c
|
@ -1570,7 +1570,7 @@ void hydra_increase_fail_count(int target_no, int head_no) {
|
|||
ok = hydra_targets[target_no]->ok;
|
||||
tasks = hydra_options.tasks;
|
||||
success = tasks - hydra_targets[target_no]->failed;
|
||||
a = tasks <= 4 && ok ? 6 - tasks : 1;
|
||||
a = tasks < 5 && ok ? 6 - tasks : 1;
|
||||
b = success < 5 && ok ? 6 - success : 1;
|
||||
maxfail = MAXFAIL + a + b + (ok ? 2 : -2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue