3 ms·
> The second number is how much of that time the machine has spent idle, in seconds Actually, the second number is the sum of the number of seconds that all co
by makkes 10y ago
> The second number is how much of that time the machine has spent idle, in seconds
Actually, the second number is the sum of the number of seconds that all cores on the machine have spent idle, so that number may be higher than the first one. Source: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-proc-uptime.html https://access.redhat.com/documentation/en-US/Red_Hat_Enterp...
- p8donald 10y agoThanks for catching that. You are right. Here is the source code: https://github.com/torvalds/linux/blob/master/fs/proc/uptime.c#L19-L21 https://github.com/torvalds/linux/blob/master/fs/proc/uptime... My source (first result in Google) was this link https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-uptime.html https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-p... which looks like an older version of the documentation that does not have that last sentence.