pcp
[Top] [All Lists]

Re: [pcp] Help with Python API

To: Rohan Arora <rarora2012@xxxxxxxxx>, pcp@xxxxxxxxxxx
Subject: Re: [pcp] Help with Python API
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 09 Jul 2015 05:52:13 +1000
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CANbxzdU3cz+-3q9RLAe2wfZC-Y4rN6JDzZsY4VAUfHn6g=YPJg@xxxxxxxxxxxxxx>
References: <CANbxzdXmsRFyF_J_7c93uBuKWJHZikoRs6xmSPQC91rALtZbNA@xxxxxxxxxxxxxx> <CANbxzdV7Vndvczvo9OLgc8CpQ20wBK=YUD6v87ewVBa6yrTXKQ@xxxxxxxxxxxxxx> <CANbxzdXcqg=sRYa0JwETB+RHChw42uAeZE-n+bABUjV-FD9TDg@xxxxxxxxxxxxxx> <587447889.27462536.1435530714712.JavaMail.zimbra@xxxxxxxxxx> <CANbxzdX_4yDiOBqU954wjfbKOFOXnB8SJ_uiRsKEBdUk-hxF1w@xxxxxxxxxxxxxx> <CANbxzdUHygK=0NuO7L3pV+FERXa-LRL59=sumY5TznT0xzonxg@xxxxxxxxxxxxxx> <337532723.28653925.1435618315696.JavaMail.zimbra@xxxxxxxxxx> <CANbxzdVqbstVAue-GKW5moDkkKJKeg5pvtRdg1eHNET_7dHxeQ@xxxxxxxxxxxxxx> <559466FE.8090107@xxxxxxxxxxxxxxxx> <CANbxzdXqUj3i-MR2xF_NrTkYV11MMLBCX0B-+Btt45JQa77NQA@xxxxxxxxxxxxxx> <CANbxzdUn0Q8BkJUm-KAuTGxQAhQTz0CmSLdXEHKLT8UVKuBx4A@xxxxxxxxxxxxxx> <559AF629.5090609@xxxxxxxxxxxxxxxx> <CANbxzdWWozajgdEWpzX-MbndB=4EeLM-8p3QZRytJHhw+rrakQ@xxxxxxxxxxxxxx> <559C4552.2010407@xxxxxxxxxxxxxxxx> <CANbxzdU3cz+-3q9RLAe2wfZC-Y4rN6JDzZsY4VAUfHn6g=YPJg@xxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
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^)>

<Prev in Thread] Current Thread [Next in Thread>