fix uptime calculation for solaris

(cherry picked from commit 4acdab76b8f8442ba2932922a61fe291e422bd06)