I have a small webspace (PHP + MySQL). Nothing special.
I can read /proc/uptime using PHP and it returns:
51967189.77 1731371689.58
So the uptime is 601 days (51967189 / 60 / 60 / 24).
I have also listed the files in the /dev
folder. On the left there is the creation time (d.m.Y).
17.03.2023 .
17.03.2023 ..
17.03.2023 full
28.07.2021 log
17.03.2023 null
17.03.2023 random
17.03.2023 tty
17.03.2023 urandom
17.03.2023 zero
Other folders like /bin
/sbin
/var
/lib64
also have 17.03.2023
as creation time.
Because these files and folders are created on boot it means the uptime is only 5 days.
So I have 601 days vs. 5 days.
How can it be /proc/uptime
does not match creation time of files like /dev/null
?