diff options
author | 1996-08-08 23:26:16 +0000 | |
---|---|---|
committer | 1996-08-08 23:26:16 +0000 | |
commit | cbc03bba438ee9c83baebf064cdf2000325e4dac (patch) | |
tree | f3e1c71d2fd948e34e56ddd349695baf1ba741fb /sys/kern/subr_disk.c | |
parent | Allow idle loop to be read even on 486's. (diff) | |
download | wireguard-openbsd-cbc03bba438ee9c83baebf064cdf2000325e4dac.tar.xz wireguard-openbsd-cbc03bba438ee9c83baebf064cdf2000325e4dac.zip |
approximate seeks; banshee@gabriella.abattoir.com
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index dc158928dd2..dfed96b2241 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -385,6 +385,7 @@ disk_unbusy(diskp, bcount) diskp->dk_bytes += bcount; diskp->dk_xfer++; } + diskp->dk_seek++; } /* @@ -401,6 +402,7 @@ disk_resetstat(diskp) diskp->dk_xfer = 0; diskp->dk_bytes = 0; + diskp->dk_seek = 0; t = splclock(); diskp->dk_attachtime = mono_time; |