[1952] in Moira
mailhub.sh arithmetic fix
daemon@ATHENA.MIT.EDU (Mark Silis)
Mon May 13 07:16:35 2002
Message-Id: <200205131116.HAA07475@I-fear-reorgs.mit.edu>
To: moiradev@MIT.EDU
Date: Mon, 13 May 2002 07:16:34 -0400
From: Mark Silis <mark@MIT.EDU>
Oops I just noticed I was mis-calculating percent change. Here is a
fix.
-- Mark
Index: mailhub.sh
===================================================================
RCS file: /afs/athena/astaff/project/moiradev/repository/moira/gen/mailhub.sh,v
retrieving revision 1.11
diff -u -r1.11 mailhub.sh
--- mailhub.sh 2002/01/22 14:19:52 1.11
+++ mailhub.sh 2002/05/13 11:10:56
@@ -34,7 +34,7 @@
olines=`wc -l $root/etc/aliases | awk '{print $1}'`
nlines=`wc -l $root/etc/aliases.new | awk '{print $1}'`
diff=`expr $nlines - $olines`
-thresh=`expr $nlines / 10`
+thresh=`expr $olines / 10`
# Catch the zero case
if [ $nlines -eq 0 ]; then