tie the flush delay to the drive spindown

This commit is contained in:
Jorj Bauer 2022-01-07 12:49:40 -05:00
parent 7c3afa096c
commit b2e36b4dfe
1 changed files with 2 additions and 3 deletions

View File

@ -26,9 +26,8 @@
// how many CPU cycles do we wait to spin down the disk drive? 1023000 == 1 second
#define SPINDOWNDELAY (1023000)
// 3 second delay before flushing. 10 seconds is too long. 3 is
// arbitrarily shorter...
#define FLUSHDELAY (1023000 * 3)
// When the drive spins down, we also need to be sure its contents are flushed.
#define FLUSHDELAY SPINDOWNDELAY
#define SPINFOREVER -2
#define NOTSPINNING -1