From 8ea0b224c71e3ebb18b8aa61102c3da79bc668a0 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 14 Nov 2008 22:05:13 +0000 Subject: -- Remove useless request_secs from structs -- Replace useless global variables global_min_ticks and global_seconds with MINIMUM_TICKS and MINIMUM_SECONDS respectively git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@41 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- stringsort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stringsort.c') 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); -- cgit v1.2.3