Skip Menu |

This queue is for tickets about the Unix-Uptime CPAN distribution.

Report information
The Basics
Id: 62627
Status: resolved
Priority: 0/
Queue: Unix-Uptime

People
Owner: PIOTO [...] cpan.org
Requestors: pioto [...] pioto.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.36
Fixed in: 0.37



Subject: CPAN Testers: FAIL Unix-Uptime-0.36 5.10.1 openbsd
Date: Mon, 1 Nov 2010 17:25:41 -0400
To: bug-Unix-Uptime [...] rt.cpan.org
From: Mike Kelly <pioto [...] pioto.org>
----- Forwarded message from Salvador Fandino <salvacpan@gmail.com> ----- From: Salvador Fandino <salvacpan@gmail.com> Date: Wed, 13 Oct 2010 13:16:16 +0200 To: Mike Kelly <pioto@pioto.org> Subject: Re: CPAN Testers: FAIL Unix-Uptime-0.36 5.10.1 openbsd User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100922 Thunderbird/3.1.4 On 10/07/2010 03:05 AM, Mike Kelly wrote: Show quoted text
> Hi, > > I'm the author of Unix::Uptime, and I'm wondering if you wouldn't mind > repeating the test again? I'm not sure if it's just an edge case in how > I'm testing, or if it's a flaw in my code. Also, if you could provide > the full TAP stream, that might be helpful, too. Thanks. >
Hi, Your module is failing because it parses the data from "sysctl kern.boottime" without taking into account the timezone configuration. Adding... local $ENV{TZ} = 'UTC'; before the sysctl call seems to solve the problem. A better option would probably be to use something similar to BSD::Sysctl that wraps the kernel sysctl API in Perl (though currently, BSD::Sysctl seems to support FreeBSD only). - Salva Show quoted text
----- End forwarded message ----- -- Mike Kelly
Hopefully fixed by using the raw binary data in 0.37.