[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-671-ge50fae3
Andreas Beckmann
debian at abeckmann.de
Mon Jun 4 21:08:51 UTC 2012
The following commit has been merged in the develop branch:
commit 1d0cd2965b0969fb4e2b807ccacc114f94da691e
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Sun Jun 3 16:47:22 2012 +0200
count the rescheduled logs
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/home/piupartsm/bin/reschedule_oldest_logs b/home/piupartsm/bin/reschedule_oldest_logs
index f70a728..f67f34e 100755
--- a/home/piupartsm/bin/reschedule_oldest_logs
+++ b/home/piupartsm/bin/reschedule_oldest_logs
@@ -62,7 +62,7 @@ for SECTION in $SECTIONS ; do
find pass fail affected -name "*.log" -mtime +$_AGE | xargs --no-run-if-empty -n99999 -s999999 ls -dt | tail -n $_COUNT > $LOGS
find fail affected -name "*.log" -mtime +$_FAIL_AGE | xargs --no-run-if-empty -n99999 -s999999 ls -dt | tail -n $_FAIL_COUNT >> $LOGS
if [ -s $LOGS ]; then
- echo $SECTION
+ echo $SECTION: $(wc -l $LOGS | awk '{ print $1 }')
ls -dtl $(cat $LOGS)
sort -u $LOGS | xargs rm 2>/dev/null
echo
--
piuparts git repository
More information about the Piuparts-commits
mailing list