Welcome to mirror list, hosted at ThFree Co, Russian Federation.

loadavg.h « local_includes « cygwin « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e6fb594d0e7d1d3c8eaec246e21b99efc7c4668f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* loadavg.h: load average support.

  This file is part of Cygwin.

  This software is a copyrighted work licensed under the terms of the
  Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
  details. */

#ifndef LOADAVG_H
#define LOADAVG_H

class loadavginfo
{
  double loadavg[3];
  time_t last_time;

 public:
  void initialize ();
  int fetch (double _loadavg[], int nelem);
  void update_loadavg ();
  void calc_load (int index, int delta_time, int decay_time, double n);
};

#endif /* LOADAVG_H */