1: /*
   2:  * loadav(vec)
   3:  * double vec[3];
   4:  * Return the load average.  vec[0] gets the 1 minute load average,
   5:  * vec[1] gets the 5 minute load average, and vec[2] gets the 15 minute
   6:  * load average.
   7:  */
   8: loadav(vec)
   9: double vec[];
  10: {
  11:     short svec[3];
  12:     int r;
  13: 
  14:     r = gldav(svec);
  15:     if (r < 0)
  16:         return r;
  17:     vec[0] = ((float) svec[0])/256.0;
  18:     vec[1] = ((float) svec[1])/256.0;
  19:     vec[2] = ((float) svec[2])/256.0;
  20:     return r;
  21: }

Defined functions

loadav defined in line 8; used 2 times
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 573
Valid CSS Valid XHTML 1.0 Strict