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