aboutsummaryrefslogtreecommitdiff
path: root/sysutils/healthd
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2001-02-06 02:43:53 +0000
committerJames E. Housley <jeh@FreeBSD.org>2001-02-06 02:43:53 +0000
commitab88d796d04dd8e06b99edd87424a36bbcb38b45 (patch)
tree0788d1d08ae56969fc7a52b68b9fd9d4dfea7629 /sysutils/healthd
parent5bb0ef2e28cdcd4b2ab11f10c3449cf04e1a270b (diff)
downloadports-ab88d796d04dd8e06b99edd87424a36bbcb38b45.tar.gz
ports-ab88d796d04dd8e06b99edd87424a36bbcb38b45.zip
Fix a divide by zero.
Bump PORTREVISION PR: 24884 Submitted by: Barney Wolff <barney@databus.com>
Notes
Notes: svn path=/head/; revision=38022
Diffstat (limited to 'sysutils/healthd')
-rw-r--r--sysutils/healthd/Makefile1
-rw-r--r--sysutils/healthd/files/patch-aa11
2 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/healthd/Makefile b/sysutils/healthd/Makefile
index 1a38cdad0737..a880c88fd848 100644
--- a/sysutils/healthd/Makefile
+++ b/sysutils/healthd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= healthd
PORTVERSION= 0.6.4
+PORTREVISION= 1
CATEGORIES= sysutils ipv6
MASTER_SITES= http://healthd.thehousleys.net/
diff --git a/sysutils/healthd/files/patch-aa b/sysutils/healthd/files/patch-aa
new file mode 100644
index 000000000000..5ceb9504adc1
--- /dev/null
+++ b/sysutils/healthd/files/patch-aa
@@ -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);