pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/munin-node Convert from using an input-less a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4769c0edc78b
branches: trunk
changeset: 548442:4769c0edc78b
user: he <he%pkgsrc.org@localhost>
date: Wed Oct 15 13:13:09 2008 +0000
description:
Convert from using an input-less awk job (how did that ever work?)
to using shell arithmetic, which should be more light-weight and should
not pose a danger of hanging.
diffstat:
sysutils/munin-node/Makefile | 3 ++-
sysutils/munin-node/files/node/node.d.netbsd/open_files.in | 11 +++++++----
2 files changed, 9 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 92a3060f69d8 -r 4769c0edc78b sysutils/munin-node/Makefile
--- a/sysutils/munin-node/Makefile Wed Oct 15 13:00:50 2008 +0000
+++ b/sysutils/munin-node/Makefile Wed Oct 15 13:13:09 2008 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.9 2007/07/04 20:55:00 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2008/10/15 13:13:09 he Exp $
#
DISTNAME= munin_${VER}
VER= 1.3.2
PKGNAME= munin-node-${VER}
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=munin/}
diff -r 92a3060f69d8 -r 4769c0edc78b sysutils/munin-node/files/node/node.d.netbsd/open_files.in
--- a/sysutils/munin-node/files/node/node.d.netbsd/open_files.in Wed Oct 15 13:00:50 2008 +0000
+++ b/sysutils/munin-node/files/node/node.d.netbsd/open_files.in Wed Oct 15 13:13:09 2008 +0000
@@ -8,6 +8,11 @@
# autoconf (optional - used by munin-config)
#
# $Log: open_files.in,v $
+# Revision 1.2 2008/10/15 13:13:09 he
+# Convert from using an input-less awk job (how did that ever work?)
+# to using shell arithmetic, which should be more light-weight and should
+# not pose a danger of hanging.
+#
# Revision 1.1.1.1 2006/06/04 20:53:57 he
# Import the client version of the Munin system monitoring/graphing
# tool -- project homepage is at http://munin.sourceforge.net/
@@ -67,10 +72,8 @@
echo 'max.label max open files'
echo 'max.info The maximum supported number of open files.'
- awk -v filemax=$filemax '{
- printf "used.warning %d\n", $filemax * 0.92;
- printf "used.critical %d\n", $filemax * 0.98;
-}'
+ echo "used.warning $(($filemax * 92/100))"
+ echo "used.critical $(($filemax * 98/100))"
exit 0
fi
Home |
Main Index |
Thread Index |
Old Index