remzi-arpacidusseau/ostep-homework

disk.py, parameter S doesn't work correctly

laushkeen opened this issue · 1 comments

I execute the program with the following parameters:

disk.py -a 30 -S 10 -c

Here is the answer that the program returns:
Block: 30 Seek: 8 Rotate:337 Transfer: 30 Total: 375
TOTALS Seek: 8 Rotate:337 Transfer: 30 Total: 375

Obviously, the seek time should be 20 as the head goes from the outer to the inner track.

Try different options they return wrong seek times as well.

You are interpreting the seekspeed parameter (-S) incorrectly. Use the graphical form of the tool to see how it works.