diff --git a/Assignment8/code/main.c b/Assignment8/code/main.c index fb341e9..6bc19d4 100644 --- a/Assignment8/code/main.c +++ b/Assignment8/code/main.c @@ -47,11 +47,12 @@ void cscan(int start) { if (request == NULL) { seekTime++; } else { + // There is a bug here, will need to revisit if (request->position < position) { - seekTime += timeToProcessRequest(position, 9999); - seekTime += timeToProcessRequest(9999, 0); - movement += abs(position - 9999); - movement += abs(9999 - 0); + //seekTime += timeToProcessRequest(position, 9999); + //seekTime += timeToProcessRequest(9999, 0); + //movement += abs(position - 9999); + //movement += abs(9999 - 0); position = 0; } seekTime += timeToProcessRequest(position, request->position);