diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-11-16 08:05:58 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-11-16 08:05:58 +0000 |
commit | e9c9cb5a9b6d6ba798bb7be9a0295df2f974a4ab (patch) | |
tree | 9d3a6643cca21ce4458c2eb3f6d7b001d5549036 /sys/dev/atapiscsi/atapiscsi.c | |
parent | 04d8fc12cd4e65253346b54a866442372f17a0ba (diff) |
Fix timeout computation; ok csapuntz@
Diffstat (limited to 'sys/dev/atapiscsi/atapiscsi.c')
-rw-r--r-- | sys/dev/atapiscsi/atapiscsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c index 9c24473c818..5743adfff59 100644 --- a/sys/dev/atapiscsi/atapiscsi.c +++ b/sys/dev/atapiscsi/atapiscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atapiscsi.c,v 1.32 2000/10/29 18:42:50 deraadt Exp $ */ +/* $OpenBSD: atapiscsi.c,v 1.33 2000/11/16 08:05:57 niklas Exp $ */ /* * This code is derived from code with the copyright below. @@ -706,7 +706,7 @@ wdc_atapi_the_machine(chp, xfer, ctxt) xfer->endticks && (ticks - xfer->endticks >= 0)); if (xfer->timeout != -1) - xfer->endticks = max((xfer->timeout * 1000) / hz, 1) + ticks; + xfer->endticks = max((xfer->timeout * hz) / 1000, 1) + ticks; if (xfer->claim_irq) claim_irq = xfer->claim_irq; |