comparison src/fns.c @ 118:7d55a9ba150c r20-1b11

Import from CVS: tag r20-1b11
author cvs
date Mon, 13 Aug 2007 09:24:17 +0200
parents a145efe76779
children cca96a509cfe
comparison
equal deleted inserted replaced
117:578fd4947a72 118:7d55a9ba150c
3294 then converted to integer. 3294 then converted to integer.
3295 3295
3296 If the 5-minute or 15-minute load averages are not available, return a 3296 If the 5-minute or 15-minute load averages are not available, return a
3297 shortened list, containing only those averages which are available. 3297 shortened list, containing only those averages which are available.
3298 3298
3299 On most systems, this won't work unless the emacs executable is installed 3299 On some systems, this won't work due to permissions on /dev/kmem in
3300 as setgid kmem (assuming that /dev/kmem is in the group kmem). 3300 which case you can't use this.
3301 */ 3301 */
3302 ()) 3302 ())
3303 { 3303 {
3304 double load_ave[10]; /* hey, just in case */ 3304 double load_ave[10]; /* hey, just in case */
3305 int loads = getloadavg (load_ave, 3); 3305 int loads = getloadavg (load_ave, 3);