On 09/07/15 00:04, Rohan Arora wrote:
Sorry, I did not mean "longer" in terms of going farther in the archive.
What I meant was if I were to change the value for timeval.tv_sec from
0x7ff... to 0x8ff... would it get me the end of the archive in say 2045
whereas 0x7ff... would stop getting me the end of the archive in ~2038?
For 32 bit platforms the world will end in 2038 unless time_t is
overhauled to be something other that a signed integer ... this is not a
PCP problem!
When the solution to this problem is addressed, I'll update the man
page, if I'm still alive.
In the interim 0x8ff... is only going to be close to working if you're
sure you're running on a 64-bit platform with time_t being a 64-bit
integer, otherwise this is a negative number before the start of all
archives.
pmGetArchiveEnd() as all round a safer bet ... 8^)>
|