Rob or Marius, do you know what units the MikroTik reports its uptime in? Is it seconds? I get numbers like 1922575 or 1909374 for the two I have MNDP data for. - Brian
Brian.
Belows seem to give sensible answer:
root@linux:~# perl -e '@a=split(`/proc/uptime`);print scalar(localtime(time()+$a[0] - 1922575.0)."\n");'
Mon May 8 09:06:38 2017
root@linux:~#
Best regards. Tom - SP2L
Thanks Tom, yes, when I assume it's seconds, I get uptime numbers like 22+02:22:54, which is 22 days, 2 hours, and some minutes/seconds. - Brian
On Tue, May 30, 2017 at 03:10:04PM +0300, SP2L wrote:
Belows seem to give sensible answer: root@linux:~# perl -e '@a=split(`/proc/uptime`);print scalar(localtime(time()+$a[0] - 1922575.0)."\n");' Mon May 8 09:06:38 2017 Best regards. Tom - SP2L