fix uptime calculation for solaris
Merge pull request #1692 from McAtte/uptime-patch-solaris

fix uptime calculation for solaris