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)  

pagemeter.h
Go to the documentation of this file.
1 //
2 // Initial port performed by Greg Onufer (exodus@cheers.bungi.com)
3 //
4 #ifndef _PAGEMETER_H_
5 #define _PAGEMETER_H_
6 
7 #include "fieldmetergraph.h"
8 #include "xosview.h"
9 #include "kstats.h"
10 #include <kstat.h>
11 
12 
13 class PageMeter : public FieldMeterGraph {
14  public:
15  PageMeter(XOSView *parent, kstat_ctl_t *kcp, float max);
16  ~PageMeter(void);
17 
18  const char *name(void) const { return "PageMeter"; }
19  void checkevent(void);
20  void checkResources(void);
21 
22  protected:
23  float pageinfo_[2][2];
24  int pageindex_;
25  float maxspeed_;
26 
27  void getpageinfo(void);
28 
29  private:
31  kstat_ctl_t *kc;
32 };
33 
34 #endif
const char * name(void) const
Definition: pagemeter.h:18
~PageMeter(void)
float pageinfo_[2][2]
Definition: pagemeter.h:23
KStatList * cpustats
Definition: pagemeter.h:30
int pageindex_
Definition: pagemeter.h:24
void getpageinfo(void)
float maxspeed_
Definition: pagemeter.h:25
kstat_ctl_t * kc
Definition: pagemeter.h:31
PageMeter(XOSView *parent, double total)
Definition: pagemeter.cc:22
void checkevent(void)
void checkResources(void)
static const int max
Definition: intmeter.cc:17