diff options
Diffstat (limited to 'stringsort.c')
-rw-r--r-- | stringsort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stringsort.c b/stringsort.c index f6d214b..57a18d5 100644 --- a/stringsort.c +++ b/stringsort.c @@ -77,7 +77,7 @@ void DoStringSort(void) ** minimum, then de-allocate the array, reallocate a ** an additional array, and try again. */ - if (DoStringSortIteration(arraybase, strsortstruct->numarrays, strsortstruct->arraysize) > global_min_ticks) { + if (DoStringSortIteration(arraybase, strsortstruct->numarrays, strsortstruct->arraysize) > MINIMUM_TICKS) { break; } @@ -98,7 +98,7 @@ void DoStringSort(void) do { total_time += DoStringSortIteration(arraybase, strsortstruct->numarrays, strsortstruct->arraysize); iterations += strsortstruct->numarrays; - } while (total_time < strsortstruct->request_secs * CLOCKS_PER_SEC); + } while (total_time < MINIMUM_SECONDS * CLOCKS_PER_SEC); free(arraybase); |