[Toybox] uptime -s

enh enh at google.com
Thu May 14 16:33:03 PDT 2020


http://landley.net/notes.html#02-05-2020

Let's see:

$ cat /proc/uptime
11514340.14 18323433.75

Um, I'm guessing first number is runtime and second is suspend time
(in seconds) since last reboot, toybox date -d @$(($(date
+%s)-18323433)) says I last rebooted near the start of October. Yeah,
sounds about right. I should probably do that so the kernel has a
chance to refresh itself for security whatsits.





it was people wanting to avoid exactly that kind of shell gymnastics
that made me add -s to uptime :-)



More information about the Toybox mailing list