Loading bin/debrebuild_cache_limiter.sh +4 −2 Original line number Diff line number Diff line Loading @@ -11,6 +11,10 @@ if [ ! -d $CACHE ] ; then exit 0 fi # delete empty files from cache first find $CACHE -type f -size 0 -exec rm {} \; # delete old files from cache if cache size is too big LIMIT=100 case $HOSTNAME in codethink*) LIMIT=200 ;; Loading @@ -20,9 +24,7 @@ case $HOSTNAME in riscv64*) LIMIT=180 ;; *) ;; esac SIZE=$(du -sh $CACHE | grep G | cut -d 'G' -f 1||echo 0) if [ $SIZE -gt $LIMIT ] ; then echo "$CACHE is still ${SIZE}G, reducing further." # delete 1000 files which have old access times Loading Loading
bin/debrebuild_cache_limiter.sh +4 −2 Original line number Diff line number Diff line Loading @@ -11,6 +11,10 @@ if [ ! -d $CACHE ] ; then exit 0 fi # delete empty files from cache first find $CACHE -type f -size 0 -exec rm {} \; # delete old files from cache if cache size is too big LIMIT=100 case $HOSTNAME in codethink*) LIMIT=200 ;; Loading @@ -20,9 +24,7 @@ case $HOSTNAME in riscv64*) LIMIT=180 ;; *) ;; esac SIZE=$(du -sh $CACHE | grep G | cut -d 'G' -f 1||echo 0) if [ $SIZE -gt $LIMIT ] ; then echo "$CACHE is still ${SIZE}G, reducing further." # delete 1000 files which have old access times Loading