summaryrefslogtreecommitdiff
path: root/assignment.c
diff options
context:
space:
mode:
Diffstat (limited to 'assignment.c')
-rw-r--r--assignment.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/assignment.c b/assignment.c
index dd18370..26af1f7 100644
--- a/assignment.c
+++ b/assignment.c
@@ -72,18 +72,15 @@ DoAssign(void)
const char* context = "CPU:Assignment";
AssignStruct* locassignstruct = &global_assignstruct; /* Local structure ptr */
long* array = NULL;
- unsigned long total_time = 0;
+ clock_t total_time = 0;
int iterations = 0;
-
int num_arrays = 1;
+ static int is_adjusted = FALSE;
- /*
- ** See if we need to do self adjustment code.
- */
- if (locassignstruct->adjust == FALSE) {
- locassignstruct->adjust = TRUE;
+ if (is_adjusted == FALSE) {
+ is_adjusted = TRUE;
/*
- ** Self-adjustment code. The system begins by working on 1
+ ** Self-is_adjustedment code. The system begins by working on 1
** array. If it does that in no time, then two arrays
** are built. This process continues until
** enough arrays are built to handle the tolerance.