summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-02-20 07:48:31 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-02-20 07:48:31 +0000
commit8d6467382a7b3c449f1947a7dc11e3f3992ad0e1 (patch)
tree3246354de510e6a3021784ae444814e2ade97981 /sys/arch
parent591f3ca25f1f36561232ae2a8b6052f5929bc91d (diff)
fix conversion for the temp values. i think i was losing some precision
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/esm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/esm.c b/sys/arch/i386/i386/esm.c
index 46822f055d9..5f37367b1d3 100644
--- a/sys/arch/i386/i386/esm.c
+++ b/sys/arch/i386/i386/esm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esm.c,v 1.39 2006/02/17 08:17:34 dlg Exp $ */
+/* $OpenBSD: esm.c,v 1.40 2006/02/20 07:48:30 dlg Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1065,7 +1065,7 @@ esm_smb_cmd(struct esm_softc *sc, struct esm_smb_req *req,
int64_t
esm_val2temp(u_int16_t value)
{
- return (((int64_t)value/10 * 1000000) + 273150000);
+ return (((int64_t)value * 100000) + 273150000);
}
int64_t