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, 2006 by Mike Romberg ( mike.romberg@noaa.gov )
3 //
4 // This file may be distributed under terms of the GPL
5 //
6 // Most of this code was written by Werner Fink <werner@suse.de>
7 // Only small changes were made on my part (M.R.)
8 //
9 
10 #ifndef _LOADMETER_H_
11 #define _LOADMETER_H_
12 
13 #include "fieldmetergraph.h"
14 #include "xosview.h"
15 
16 
17 class LoadMeter : public FieldMeterGraph {
18 public:
19  LoadMeter( XOSView *parent );
20  ~LoadMeter( void );
21 
22  const char *name( void ) const { return "LoadMeter"; }
23  void checkevent( void );
24 
25  void checkResources( void );
26 protected:
27 
28  void getloadinfo( void );
29  unsigned long procloadcol_, warnloadcol_, critloadcol_;
30  void getspeedinfo( void );
31 
32 private:
36 };
37 
38 
39 #endif
const char * name(void) const
Definition: loadmeter.h:22
unsigned long warnloadcol_
Definition: loadmeter.h:36
int warnThreshold
Definition: loadmeter.h:32
LoadMeter(XOSView *parent)
void getloadinfo(void)
void getspeedinfo(void)
Definition: loadmeter.cc:138
int alarmstate
Definition: loadmeter.h:32
void checkevent(void)
unsigned long critloadcol_
Definition: loadmeter.h:36
void checkResources(void)
int old_cpu_speed_
Definition: loadmeter.h:38
int do_cpu_speed
Definition: loadmeter.h:35
int lastalarmstate
Definition: loadmeter.h:32
int critThreshold
Definition: loadmeter.h:32
unsigned long procloadcol_
Definition: loadmeter.h:36
~LoadMeter(void)
int cur_cpu_speed_
Definition: loadmeter.h:38