From 46194b60fd8cbc82071cc4dd92ca19e2184990d4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 1 Nov 2014 17:23:41 +0100 Subject: g-i: keep .pngs to generate the video later, they're roughly 1% of the .ppm size --- bin/maintainance.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/maintainance.sh') diff --git a/bin/maintainance.sh b/bin/maintainance.sh index 85629757..02292c4e 100755 --- a/bin/maintainance.sh +++ b/bin/maintainance.sh @@ -60,10 +60,10 @@ report_disk_usage() { report_filetype_usage() { OUTPUT=$(mktemp) for JOB in $(cat $WATCHED_JOBS) ; do - if [ "$2" != "bak" ] && [ "$2" != "ppm" ] ; then + if [ "$2" != "bak" ] && [ "$2" != "png" ] ; then find /var/lib/jenkins/jobs/$JOB -type f -name "*.${2}" ! -path "*/archive/*" 2>/dev/null|xargs -r du -sch |grep total |sed -s "s#total#$JOB .$2 files#" >> $OUTPUT else - # find archived .bak + .ppm files too + # find archived .bak + .png files too find /var/lib/jenkins/jobs/$JOB -type f -name "*.${2}" 2>/dev/null|xargs -r du -sch |grep total |sed -s "s#total#$JOB .$2 files#" >> $OUTPUT fi done @@ -145,7 +145,7 @@ else echo report_disk_usage $1 report_filetype_usage $1 png - report_filetype_usage $1 ppm warn + report_filetype_usage $1 ppm warn # FIXME: remove this check in 3 days (and add warn to pngs) report_filetype_usage $1 bak warn report_filetype_usage $1 raw warn report_filetype_usage $1 iso warn -- cgit v1.2.3-70-g09d2