summaryrefslogtreecommitdiff
path: root/neural.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-14 22:05:13 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-14 22:05:13 +0000
commit8ea0b224c71e3ebb18b8aa61102c3da79bc668a0 (patch)
tree813c913fc87aacc08fd6c5d6c42767707633711e /neural.c
parent0c8398d4b960967e65418885708a096eb489a8e8 (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 'neural.c')
-rw-r--r--neural.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/neural.c b/neural.c
index 7f03545..5b443d3 100644
--- a/neural.c
+++ b/neural.c
@@ -153,7 +153,7 @@ DoNNET(void)
*/
for (locnnetstruct->loops = 1; locnnetstruct->loops < MAXNNETLOOPS; locnnetstruct->loops++) {
randnum((int32_t)3);
- if(DoNNetIteration(locnnetstruct->loops) > global_min_ticks) {
+ if(DoNNetIteration(locnnetstruct->loops) > MINIMUM_TICKS) {
break;
}
}
@@ -163,7 +163,7 @@ DoNNET(void)
randnum((int32_t)3); /* Gotta do this for Neural Net */
total_time += DoNNetIteration(locnnetstruct->loops);
iterations += locnnetstruct->loops;
- } while (total_time < locnnetstruct->request_secs * CLOCKS_PER_SEC);
+ } while (total_time < MINIMUM_SECONDS * CLOCKS_PER_SEC);
locnnetstruct->results = (double)(iterations * CLOCKS_PER_SEC) / total_time;
}