comparison src/fns.c @ 48:56c54cf7c5b6 r19-16b90

Import from CVS: tag r19-16b90
author cvs
date Mon, 13 Aug 2007 08:56:04 +0200
parents 441bb1e64a06
children ee648375d8d6
comparison
equal deleted inserted replaced
47:11c6df210d7f 48:56c54cf7c5b6
3006 then converted to integer. 3006 then converted to integer.
3007 3007
3008 If the 5-minute or 15-minute load averages are not available, return a 3008 If the 5-minute or 15-minute load averages are not available, return a
3009 shortened list, containing only those averages which are available. 3009 shortened list, containing only those averages which are available.
3010 3010
3011 On most systems, this won't work unless the emacs executable is installed 3011 On some systems, this won't work due to permissions on /dev/kmem in
3012 as setgid kmem (assuming that /dev/kmem is in the group kmem). 3012 which case you can't use this.
3013 */ 3013 */
3014 ()) 3014 ())
3015 { 3015 {
3016 double load_ave[10]; /* hey, just in case */ 3016 double load_ave[10]; /* hey, just in case */
3017 int loads = getloadavg (load_ave, 3); 3017 int loads = getloadavg (load_ave, 3);