Fix a divide by zero.

Bump PORTREVISION

PR:		24884
Submitted by:	Barney Wolff <barney@databus.com>
This commit is contained in:
James E. Housley 2001-02-06 02:43:53 +00:00
parent 5bb0ef2e28
commit ab88d796d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38022
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= healthd
PORTVERSION= 0.6.4
PORTREVISION= 1
CATEGORIES= sysutils ipv6
MASTER_SITES= http://healthd.thehousleys.net/

View file

@ -0,0 +1,11 @@
--- getMBinfo.c.orig Sun Jan 7 11:24:43 2001
+++ getMBinfo.c Mon Feb 5 21:41:37 2001
@@ -293,7 +293,7 @@
else
*r2 = 1350000 / (n * div2 * FanType2);
n=ReadByte(0x2A);
- if (n == 255)
+ if ((n == 255) || (n==0))
*r3 = 0;
else
*r3 = 1350000 / (n * div3 * FanType3);