Include all files for the given notif registration in checking
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 19 Mar 2012 15:34:45 +0000 (15:34 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 19 Mar 2012 15:34:45 +0000 (15:34 +0000)
org.glite.lb.server/src/notif-keeper.sh

index 4e71848..a1bd957 100644 (file)
@@ -123,9 +123,9 @@ function check_timestamp() {
        
        if [ $age_check -gt 0 ]; then
                uniq=`echo ${NOTIFID[${1}]} | sed -r 's/^.*NOTIF://'`
-               vecho 2 looking at notif file $FilePrefix.$uniq
+               vecho 2 looking at notif files $FilePrefix.$uniq*
                if [ -f $FilePrefix.$uniq ]; then
-                       currsize=`wc -c $FilePrefix.$uniq`
+                       currsize=`wc -c $FilePrefix.$uniq* | tail -n 1`
                else
                        currsize=0;
                fi