From e9c9cb5a9b6d6ba798bb7be9a0295df2f974a4ab Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Thu, 16 Nov 2000 08:05:58 +0000 Subject: Fix timeout computation; ok csapuntz@ --- sys/dev/atapiscsi/atapiscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/atapiscsi/atapiscsi.c') 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; -- cgit v1.2.3