Changeset 18699 for trunk/DataCheck


Ignore:
Timestamp:
12/20/16 15:30:17 (8 years ago)
Author:
Daniela Dorner
Message:
give warning only for last year (to avoid getting warnings for files in fails folder that had been deleted)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/CheckRawFilesAvail.sh

    r17580 r18699  
    2525   currentnight=`date +%Y%m%d`
    2626   checknight=`echo " $currentnight - $transferdelay " | bc -l`
     27   # work around for 100 missing old files to avoid warnings every hour
     28   checknight2=`echo " $currentnight - 365 - $transferdelay " | bc -l`
    2729   
    2830   setstatus "start"
     
    8082                   check=$check2
    8183                   ;;
    82               *)   # print warning only for files which are older than $transferdelay days
    83                    if [ $night -lt $checknight ]
     84              *)   # print warning only for files which are older than $transferdelay days and within the last year
     85                   if [ $night -lt $checknight ] && [ $night -gt $checknight2 ]
    8486                   then
    8587                      printprocesslog "WARN "$rawfile" and "$failsfile" missing."
Note: See TracChangeset for help on using the changeset viewer.