LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   2 numbers in /proc/uptime?? (https://www.linuxquestions.org/questions/linux-general-1/2-numbers-in-proc-uptime-217046/)

blackzone 08-13-2004 03:55 AM

2 numbers in /proc/uptime??
 
why are there two numbers in the /proc/uptime??

both seemed to calculate uptime. Not sure relative to what though.
=============================================
Also one behaviour I find it really weird the time seemed to be off between the two.

cat /proc/uptime ==> 96.50 62.42 (difference of 34.08)
cat /proc/uptime ==> 349.40 315.14 (difference of 34.26)
cat /proc/uptime ==> 456.79 421.59 (difference of 35.20)
cat /proc/uptime ==> 695.91 660.20 (difference of 35.71)

amosf 08-13-2004 04:27 AM

The first number is the uptime in seconds... The second is something to do with time in idle processes or somesuch... Check man proc for more maybe.

tombest 10-13-2006 10:35 AM

/proc/uptime - 2 numbers
 
/proc/uptime
This file contains two numbers: the uptime of the system (seconds), and the amount of time spent in idle process (seconds).

Tom Best
Oracle Database Curriculum Developer


All times are GMT -5. The time now is 10:34 AM.