diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-14 22:05:13 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-14 22:05:13 +0000 |
commit | 8ea0b224c71e3ebb18b8aa61102c3da79bc668a0 (patch) | |
tree | 813c913fc87aacc08fd6c5d6c42767707633711e /numsort.c | |
parent | 0c8398d4b960967e65418885708a096eb489a8e8 (diff) |
-- 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
Diffstat (limited to 'numsort.c')
-rw-r--r-- | numsort.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -62,7 +62,7 @@ DoNumSort (void) ** minimum, then allocate for more arrays and ** try again. */ - if (DoNumSortIteration(arraybase, numsortstruct->arraysize, numsortstruct->numarrays) > global_min_ticks) { + if (DoNumSortIteration(arraybase, numsortstruct->arraysize, numsortstruct->numarrays) > MINIMUM_TICKS) { break; } @@ -87,7 +87,7 @@ DoNumSort (void) do { total_time += DoNumSortIteration(arraybase, numsortstruct->arraysize, numsortstruct->numarrays); ++iterations; - } while (total_time < numsortstruct->request_secs * CLOCKS_PER_SEC); + } while (total_time < MINIMUM_SECONDS * CLOCKS_PER_SEC); free(arraybase); |