summaryrefslogtreecommitdiff
path: root/idea.c
diff options
context:
space:
mode:
Diffstat (limited to 'idea.c')
-rw-r--r--idea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/idea.c b/idea.c
index 28e6cc4..335e1e5 100644
--- a/idea.c
+++ b/idea.c
@@ -137,7 +137,7 @@ DoIDEA(void)
** get a number of loops that we can use.
*/
for (locideastruct->loops = 100; locideastruct->loops < MAXIDEALOOPS; locideastruct->loops += 10) {
- if (DoIDEAIteration(plain1, crypt1, plain2, locideastruct->arraysize, locideastruct->loops, Z, DK) > global_min_ticks) {
+ if (DoIDEAIteration(plain1, crypt1, plain2, locideastruct->arraysize, locideastruct->loops, Z, DK) > MINIMUM_TICKS) {
break;
}
}
@@ -150,7 +150,7 @@ DoIDEA(void)
do {
total_time += DoIDEAIteration(plain1, crypt1, plain2, locideastruct->arraysize, locideastruct->loops, Z, DK);
iterations += locideastruct->loops;
- } while (total_time < locideastruct->request_secs * CLOCKS_PER_SEC);
+ } while (total_time < MINIMUM_SECONDS * CLOCKS_PER_SEC);
free(plain1);
free(crypt1);