Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!hp4nl!nikhefh!e07 From: e07@nikhefh.nikhef.nl (Eric Wassenaar) Newsgroups: comp.sys.apollo Subject: Re: SR10.3 source to determine load average Keywords: load average Message-ID: <1165@nikhefh.nikhef.nl> Date: 28 Feb 91 20:21:16 GMT References: <1991Feb27.042254.14588@bwdls61.bnr.ca> <501157c1.1bc5b@pisa.citi.umich.edu> Sender: e07@nikhef.nl (Eric Wassenaar) Organization: Nikhef-H, Amsterdam (the Netherlands). Lines: 25 In article <501157c1.1bc5b@pisa.citi.umich.edu>, rees@pisa.citi.umich.edu (Jim Rees) writes: > long avenrun[3]; > status_$t status; > proc1_$get_loadav(avenrun, &status); Two remarks: a. Values need yet to be properly scaled to get them in the usual format. b. Unlike other apollo system calls, this one does not return a status. getload(avenrun) double avenrun[3]; { int load[3]; register int i; proc1_$get_loadav(load); for (i = 0; i < 3; i++) avenrun[i] = (double)load[i] / 65536.0; } Eric Wassenaar -- Organization: NIKHEF-H, National Institute for Nuclear and High-Energy Physics Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands Phone: +31 20 592 0412, Home: +31 20 909449, Telefax: +31 20 592 5155 Internet: e07@nikhef.nl