system uptime in readable time

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
menno
Posts: 158
Joined: Fri May 21, 2010 1:27 am

system uptime in readable time

Post by menno »

Hello,

I use for my printers the SNMP OID 1.3.6.1.2.1.1.3.0.
This displays the uptime in miliseconds.
question:
How do i "tune up the reply" or convert this value so that is a readable time like : 12day 30min


i hope you can help me out here
Many thanks in advance
m
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Tune up Reply value [(%SuggestedReply% div 100) div 86400]days [((%SuggestedReply% div 100) mod 86400) div 3600]h [((%SuggestedReply% div 100) mod 3600) div 60]m

http://www.ks-soft.net/phpBB/viewtopic. ... c0af457113

Regards
Alex
menno
Posts: 158
Joined: Fri May 21, 2010 1:27 am

Post by menno »

Thanks
Works great !!!
Post Reply