diff options
author | hubertf <hubertf> | 2002-10-24 19:04:23 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2002-10-24 19:04:23 +0000 |
commit | c8776469d1edb41ece8e4ce1d02290516cbd05bb (patch) | |
tree | ff7ae8628c7e34aea04d9eac5ab9bcbd1191923d /x11 | |
parent | 00b36be81a2eb1a4b565848848640adce1bfd1ba (diff) | |
download | pkgsrc-c8776469d1edb41ece8e4ce1d02290516cbd05bb.tar.gz |
make load == 2 the maximum (not load==1)
Diffstat (limited to 'x11')
-rw-r--r-- | x11/hot-babe/distinfo | 4 | ||||
-rw-r--r-- | x11/hot-babe/patches/patch-aa | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/x11/hot-babe/distinfo b/x11/hot-babe/distinfo index b889b150962..7020ae5959b 100644 --- a/x11/hot-babe/distinfo +++ b/x11/hot-babe/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2002/10/24 18:57:05 hubertf Exp $ +$NetBSD: distinfo,v 1.2 2002/10/24 19:04:23 hubertf Exp $ SHA1 (hot-babe-0.1.2.tar.gz) = 53410a9f5590250ba862ee220ac9140014c39114 Size (hot-babe-0.1.2.tar.gz) = 708450 bytes -SHA1 (patch-aa) = 8e016eb38b21083b8d24c23ac480ebfd5275feb5 +SHA1 (patch-aa) = 4b8a239530edb4c144eacf61061bad030d7cb3d6 SHA1 (patch-ab) = ebb9a0fae24c0ad6719fe99b34c77e49f91e02bc diff --git a/x11/hot-babe/patches/patch-aa b/x11/hot-babe/patches/patch-aa index ba032253583..60d43a1bf39 100644 --- a/x11/hot-babe/patches/patch-aa +++ b/x11/hot-babe/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.1.1.1 2002/10/24 18:57:05 hubertf Exp $ +$NetBSD: patch-aa,v 1.2 2002/10/24 19:04:23 hubertf Exp $ --- hot-babe.c.orig Sat Sep 21 16:53:24 2002 +++ hot-babe.c @@ -10,7 +10,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2002/10/24 18:57:05 hubertf Exp $ + double l; + if (getloadavg(&l, 1) < 0) + return 256; -+ return (int)(256 * (l>1.0? 1.0 : l)); ++ return (int)(256 * (l>2.0? 2.0 : l) / 2.0); +#else unsigned int cpuload; u_int64_t load, total, oload, ototal; |