On Sat, Mar 17, 2012 at 12:13 PM, mscdex <msc...@gmail.com> wrote:
> On Mar 17, 12:21 pm, alFReD NSH <farid...@googlemail.com> wrote:
>> Can someone tell me why node is showing the correct uptime on my system?
>
> What version of Ubuntu are you using?
>
> On my Ubuntu 10.04.4 machine with node 0.6.13 I get:
<snip>

Might have something to do with a newer kernel or glibc in newer
Ubuntu?  My Fedora 16 system is fine but F17 Alpha is off like his.

% cat /etc/fedora-release
Fedora release 16 (Verne)
% rpm -q kernel glibc nodejs
kernel-3.2.9-2.fc16.x86_64
glibc-2.14.90-24.fc16.6.x86_64
nodejs-0.6.13-1.fc16.x86_64
% uptime
 15:43:58 up 12 days, 11:17,  1 user,  load average: 0.00, 0.01, 0.05
% cat /proc/uptime
1077480.57 2137235.92
% nodejs -e "console.log(require('os').uptime())"
1077483.718403379

% cat /etc/fedora-release
Fedora release 17 (Beefy Miracle)
% rpm -q kernel glibc nodejs
kernel-3.3.0-0.rc6.git0.2.fc17.x86_64
glibc-2.15-23.fc17.x86_64
nodejs-0.6.13-2.fc17.x86_64
% uptime
 12:45:59 up 1 day, 15:29,  4 users,  load average: 0.08, 0.06, 0.10
% cat /proc/uptime
142158.14 188488.93
% nodejs -e "console.log(require('os').uptime())"
123132.176720475

-T.C.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to