[Popcon-commits] cvs commit to popularity-contest by pere
pere at cvs.alioth.debian.org
pere at cvs.alioth.debian.org
Sat Jul 23 23:07:10 UTC 2005
Update of /cvsroot/popcon/popularity-contest
In directory haydn:/tmp/cvs-serv24282
Modified Files:
popcon-process.sh
Log Message:
Make the timeout value more obvoius.
Index: popcon-process.sh
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popcon-process.sh,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- popcon-process.sh 23 Jul 2005 23:05:27 -0000 1.13
+++ popcon-process.sh 23 Jul 2005 23:07:08 -0000 1.14
@@ -7,6 +7,9 @@
BINDIR=$BASEDIR/../bin
SUMMARYDIR=$BASEDIR/all-popcon-results
+# Remove entries older than # number of days
+DAYLIMIT=20
+
set -e
cd $BASEDIR
umask 0002
@@ -20,7 +23,7 @@
# delete outdated entries
rm -f results
-find popcon-entries -type f -mtime +20 -print0 | xargs -0 rm -f --
+find popcon-entries -type f -mtime +$DAYLIMIT -print0 | xargs -0 rm -f --
find popcon-entries -type f | xargs cat \
| nice -15 $BINDIR/popanal.py >$LOGDIR/popanal.out 2>&1
cp results $WEBDIR/all-popcon-results.txt
More information about the Popcon-commits
mailing list