fix uptime calculation for solaris