"Fossies" - the Fresh Open Source Software Archive 
Member "xosview-1.23/linux/loadmeter.h" (11 Jul 2020, 856 Bytes) of package /linux/misc/xosview-1.23.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "loadmeter.h" see the
Fossies "Dox" file reference documentation.
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:
33 int warnThreshold, critThreshold, alarmstate, lastalarmstate;
34 int old_cpu_speed_, cur_cpu_speed_;
35 int do_cpu_speed;
36 };
37
38
39 #endif