mirror of
https://github.com/JorjBauer/aiie.git
synced 2025-02-16 14:30:36 +00:00
tie the flush delay to the drive spindown
This commit is contained in:
parent
7c3afa096c
commit
b2e36b4dfe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user