I don't have access to oss.sgi.com yet, so here is another patch that
fixes the pmlogger_daily problem with daylight saving transitions.
The problem does lie with pmdate (and this is not fixable), and there
were two related but different problems that happened when daylight
savings started and ended.
This patch has been checked multiple times with QA
$ check -g logutil -x remote -x sgi
on a couple of different machines (once you have the associated pcpcqa
patch applied).
For the brave soul applying the patch, here is some take text ...
man/man1/pmlogger_daily.1
src/pmlogctl/pmlogger_daily.sh
Change the handling of time in the past to not use pmdate, and
algorithmic changes to avoid the problems associated with the
transitions at both ends of daylight savings periods. Culling
and compressing are now based on the mtime of the archives.
Independent of when the script is run, today's archives are
NEVER candidates for merging. Resurrected the lost Aztec mode
in which a superior script will merge all archives (not just
yesterday's archives) by default. Added -o to support the old
Spanish mode where only yesterday's archives are merge
candidates.
pcp.patch
Description: Text Data
|