summaryrefslogtreecommitdiff
path: root/huffman.c
diff options
context:
space:
mode:
Diffstat (limited to 'huffman.c')
-rw-r--r--huffman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/huffman.c b/huffman.c
index 1e0dac9..c6c85e7 100644
--- a/huffman.c
+++ b/huffman.c
@@ -135,7 +135,7 @@ DoHuffman(void)
** get a number of loops that we can use.
*/
for (lochuffstruct->loops = 100; lochuffstruct->loops < MAXHUFFLOOPS; lochuffstruct->loops += 10) {
- if (DoHuffIteration(plaintext, comparray, decomparray, lochuffstruct->arraysize, lochuffstruct->loops, hufftree) > global_min_ticks) {
+ if (DoHuffIteration(plaintext, comparray, decomparray, lochuffstruct->arraysize, lochuffstruct->loops, hufftree) > MINIMUM_TICKS) {
break;
}
}
@@ -144,7 +144,7 @@ DoHuffman(void)
do {
total_time += DoHuffIteration(plaintext, comparray, decomparray, lochuffstruct->arraysize, lochuffstruct->loops, hufftree);
iterations += lochuffstruct->loops;
- } while (total_time < lochuffstruct->request_secs * CLOCKS_PER_SEC);
+ } while (total_time < MINIMUM_SECONDS * CLOCKS_PER_SEC);
free(plaintext);
free(comparray);