Skip Menu |

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

Report information
The Basics
Id: 64001
Status: open
Priority: 0/
Queue: Unix-Uptime

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

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



Subject: Support Solaris
Looks like we just need to parse the output of `kstat`: module: unix instance: 0 name: system_misc class: misc boot_time, avenrun_1min, avenrun_5min, avenrun_15min sample command: `kstat -p unix:0:system_misc:boot_time` yields: "unix:0:system_misc:boot_time\t1292560376" Other stuff to look at, code-wise: http://www.brendangregg.com/K9Toolkit/uptime Sun::Solaris::Kstat (included on solaris, not on CPAN)
Apparently dividing the load average numbers by 256 gives the real value. Where this magic constant comes from, I have no idea.