From: zacheiss Date: Wed, 15 May 2002 20:25:05 +0000 (+0000) Subject: Threshold should be based on number of old lines, not number of new lines. X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/3357c6bc8475a01a80a29b7f001f2f27576217ab Threshold should be based on number of old lines, not number of new lines. --- diff --git a/gen/mailhub.sh b/gen/mailhub.sh index 1e128148..62caea95 100644 --- a/gen/mailhub.sh +++ b/gen/mailhub.sh @@ -34,7 +34,7 @@ fi 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