[Popcon-commits] cvs commit to popularity-contest/debian by pere
pere at cvs.alioth.debian.org
pere at cvs.alioth.debian.org
Tue Mar 18 08:38:34 UTC 2008
Update of /cvsroot/popcon/popularity-contest/debian
In directory alioth:/tmp/cvs-serv14786/debian
Modified Files:
changelog cron.weekly
Log Message:
[ Petter Reinholdtsen ]
* Make sure popanal do not crash when an invalid timestamp is found
in the POPULARITY-CONTEST-0 header.
* Remove code in cron.weekly to sleep a random period of time up to
an hour, to test hypothesis that this was not the reason for the
increase in submissions seen the last few months. Possibly
reopens #440493, #459910.
Index: changelog
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/debian/changelog,v
retrieving revision 1.382
retrieving revision 1.383
diff -u -d -r1.382 -r1.383
--- changelog 18 Mar 2008 08:32:30 -0000 1.382
+++ changelog 18 Mar 2008 08:38:32 -0000 1.383
@@ -3,6 +3,10 @@
[ Petter Reinholdtsen ]
* Make sure popanal do not crash when an invalid timestamp is found
in the POPULARITY-CONTEST-0 header.
+ * Remove code in cron.weekly to sleep a random period of time up to
+ an hour, to test hypothesis that this was not the reason for the
+ increase in submissions seen the last few months. Possibly
+ reopens #440493, #459910.
-- Petter Reinholdtsen <pere at debian.org> Sun, 13 Jan 2008 14:32:32 +0100
Index: cron.weekly
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/debian/cron.weekly,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cron.weekly 9 Jan 2008 22:06:11 -0000 1.24
+++ cron.weekly 18 Mar 2008 08:38:32 -0000 1.25
@@ -11,7 +11,6 @@
unset PARTICIPATE
unset SUBMITURLS
unset USEHTTP
-unset RUNSLEEP
# get configuration information
. /usr/share/popularity-contest/default.conf
@@ -27,21 +26,6 @@
export http_proxy="$HTTP_PROXY";
fi
-# Sleep a random number of seconds to avoid all clients connecting to
-# the server at the same time. Based on code from the cron-apt and
-# sitesummary package.
-if [ -n "$RUNSLEEP" ] ; then
- if [ $RUNSLEEP -gt 0 ] ; then
- if [ -z "$RANDOM" ] ; then
- # A fix for shells that do not have this bash feature.
- RANDOM=$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -c"1-5")
- fi
- TIME=$(($RANDOM % $RUNSLEEP))
- sleep $TIME
- fi
-fi
-
-
# keep old logs
cd /var/log
umask 022
More information about the Popcon-commits
mailing list