Skip Menu |

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

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

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Use unpack() to get the boottime value on *bsd
On FreeBSD, at least, we can do something like this to get the boottime, and avoid the need for external date parsing modules: $boottime=`sysctl -b kern.boottime`; print localtime(unpack("l",$boottime))."\n"';
Trying that as a fallback, but using XS when possible.