Blob Blame History Raw
commit b7a462b4cd848dfa21b20fdcdb9ecde8846b2447
Author: Mark Goodwin <mgoodwin@redhat.com>
Date:   Wed Dec 26 14:30:43 2018 +1100

    Revert "pmlogger_daily: use whole day granularity for PCP_COMPRESSAFTER config"
    
    This reverts commit 7570a314ed657589f31830dc880d811b6ff589e9.
    The patch is flawed and need to be reworked.  See PCP GH #597.
    
    modified:   src/pmlogger/pmlogger_daily.sh

diff --git a/src/pmlogger/pmlogger_daily.sh b/src/pmlogger/pmlogger_daily.sh
index 601493557..6caaeed66 100755
--- a/src/pmlogger/pmlogger_daily.sh
+++ b/src/pmlogger/pmlogger_daily.sh
@@ -98,9 +98,6 @@ then
 	exit
     fi
 fi
-# On GNU/Linux we use whole day granularity for mtime (BSD is different)
-find . -daystart -name NoSuchFile >/dev/null 2>&1 && FIND_DAYSTART="-daystart"
-
 COMPRESSREGEX=""
 COMPRESSREGEX_CMDLINE=""
 COMPRESSREGEX_DEFAULT="\.(index|Z|gz|bz2|zip|xz|lzma|lzo|lz4)$"
@@ -1392,8 +1389,7 @@ p
 			else
 			    mtime=$COMPRESSAFTER
 			fi
-			# $FIND_DAYSTART may not be set on some platforms, so it's not quoted here
-			find . -type f $FIND_DAYSTART -mtime +$mtime
+			find . -type f -mtime +$mtime
 		    fi \
 		    | _filter_filename \
 		    | egrep -v "$COMPRESSREGEX" \