xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

loadmeter.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 1994, 1995 by Mike Romberg ( romberg@fsl.noaa.gov )
3 // Copyright (c) 1995, 1996, 1997-2002 by Brian Grayson (bgrayson@netbsd.org)
4 //
5 // Most of this code was written by Werner Fink <werner@suse.de>
6 // Only small changes were made on my part (M.R.)
7 // And the near-trivial port to NetBSD was by bgrayson.
8 //
9 // This file may be distributed under terms of the GPL or of the BSD
10 // license, whichever you choose. The full license notices are
11 // contained in the files COPYING.GPL and COPYING.BSD, which you
12 // should have received. If not, contact one of the xosview
13 // authors for a copy.
14 //
15 
16 #ifndef _LOADMETER_H_
17 #define _LOADMETER_H_
18 
19 #include "fieldmetergraph.h"
20 #include "xosview.h"
21 
22 
23 class LoadMeter : public FieldMeterGraph {
24 public:
25  LoadMeter( XOSView *parent );
26  ~LoadMeter( void );
27 
28  const char *name( void ) const { return "LoadMeter"; }
29  void checkevent( void );
30  void checkResources( void );
31 
32 protected:
33  void getloadinfo( void );
34 
35 private:
40 };
41 
42 
43 #endif
const char * name(void) const
Definition: loadmeter.h:28
unsigned long warnloadcol_
Definition: loadmeter.h:36
int critThreshold_
Definition: loadmeter.h:37
int alarmstate_
Definition: loadmeter.h:37
int warnThreshold_
Definition: loadmeter.h:37
LoadMeter(XOSView *parent)
Definition: loadmeter.cc:24
void getloadinfo(void)
Definition: loadmeter.cc:92
int lastalarmstate_
Definition: loadmeter.h:37
void checkevent(void)
Definition: loadmeter.cc:75
unsigned long critloadcol_
Definition: loadmeter.h:36
void checkResources(void)
Definition: loadmeter.cc:32
int old_cpu_speed_
Definition: loadmeter.h:38
bool do_cpu_speed_
Definition: loadmeter.h:39
unsigned long procloadcol_
Definition: loadmeter.h:36
~LoadMeter(void)
Definition: loadmeter.cc:29
int cur_cpu_speed_
Definition: loadmeter.h:38