LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-13-2004, 03:55 AM   #1
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
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)

Last edited by blackzone; 08-13-2004 at 04:07 AM.
 
Old 08-13-2004, 04:27 AM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
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.
 
Old 10-13-2006, 10:35 AM   #3
tombest
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
/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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Correlation between /proc/devices and /proc/modules ColinLadyka Linux - General 1 02-13-2006 05:25 PM
Uptime: 2.4 vs 2.6 Synesthesia Linux - General 4 10-17-2005 03:23 PM
24/7 uptime? jollyjoice General 20 01-25-2005 11:12 AM
Adding numbers, break on non-numbers... Cruger Programming 1 03-22-2004 09:18 AM
What /proc proc file do I need? GoboFraggle Programming 1 02-04-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration