Re: Pmlogger timespec question
"Ken McDonell" <[email protected]> Fri, 17 Feb 2017 07:05:09 +1100
| Newsgroups | gmane.comp.sysutils.pcp |
|---|---|
| Message-ID | <[email protected]> |
On 16/02/17 01:56, Frank Ch. Eigler wrote: > Hi - > >> -bash-4.2$ /usr/bin/pmlogger -c /etc/pcp/pmmgr/test_log.conf -T '@ 08:51:00' -l ./pmlogger.log ./archives/archive-test >> [...] >> I would have expected this to run until 08:51 tomorrow. > > Try: > > $ /usr/bin/pmlogger -c /etc/pcp/pmmgr/test_log.conf -T '@ tomorrow 08:51:00' -l ./pmlogger.log ./archives/archive-test While this does indeed work, Martins example shows where changes in the handling of reverse date parsing in libpcp have broken the historical behavior. From man pcpintro(3) ... ... So, for example if the time window starts by default at ``Mon Mar 4 13:07:47 1996'', then -S @13:10 corresponds to 13:10:00 on Mon Mar 4, 1996, while -S @10:00 corresponds to 10:00:00 on Tue Mar 5, 1996 (note this is the following day). This is the way it worked from the epoch, and I suspect the semantics changed on Tue Feb 18 15:27:36 2014 with commit 7ef03c9. I think we either need to fix the code or fix the documentation. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#15198): https://groups.io/g/pcp/message/15198 View All Messages In Topic (3): https://groups.io/g/pcp/topic/4368599 Mute This Topic: https://groups.io/mt/4368599?uid=174580 New Topic: https://groups.io/g/pcp/post -=-=- pcp mailing list [email protected] https://groups.io/g/pcp/messages -=-=- Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580 Group Home: https://groups.io/g/pcp Contact Group Owner: [email protected] Terms of Service: https://groups.io/static/tos Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy -=-=-=-=-=-=-=-=-=-=-=-