LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question regarding /proc/uptime (https://www.linuxquestions.org/questions/linux-newbie-8/question-regarding-proc-uptime-916207/)

somenathpal 11-29-2011 10:37 AM

Question regarding /proc/uptime
 
Hello All,

In my system when I issue the command

cat /proc/uptime it returns the following
3803.21 14244.93
As per my understanding the first floating point number return the total number of seconds the system has been up and the second how much of that time the machine has spent idle, in seconds. So my question is how the second number is greater than first number?

corp769 11-29-2011 12:47 PM

Honestly I have never seen that. What is outputted when you run the uptime command?

syg00 11-29-2011 04:02 PM

The first number is independent of the number of CPUs/cores.

corp769 11-29-2011 04:09 PM

Quote:

Originally Posted by syg00 (Post 4537703)
The first number is independent of the number of CPUs/cores.

Ahh ok, that explains it then. Thanks.


All times are GMT -5. The time now is 03:02 AM.