Questions tagged [uptime]

83 questions
18
votes
4 answers

How to reliably get timestamp at which the system booted?

I'm aware of the uptime command, but it returns seconds since booted, so if I just substract that number from current timestamp, in theory I can get a different result if second changes after I've read the uptime and current timestamp. uptime -s is…
Fluffy
  • 2,077
5
votes
1 answer

How is the "users" field of `uptime` calculated?

For me, uptime yields 9 users, but ps -Af | cut -f1 -d' ' | sort | uniq | wc -l yields 14. I'm not exactly sure where the 9 is coming from. Before I jump to conclusions though, please let me know if you guys do not have such a discrepancy.
extremeaxe5
  • 1,183
2
votes
1 answer

How is uptime calculated?

I was wondering how uptime is calculated. Is it simply the difference between now and boot time? More specifically-- If I were to boot up, run for 5 minutes, and put the machine to sleep for a year; Upon resuming, would my uptime show 5 minutes, or…
sam
  • 22,765
0
votes
1 answer

no1 record in uptimed report

I have recently installed uptimed to track history of when my electricity was off. Everything is clear but there's one thing I cannot decipher. What does the label "no1" stand for in the following report? It points to a future date (it's March 7,…
dzieciou
  • 101