"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/sunos5/pagemeter.h" (11 Jul 2020, 608 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 "pagemeter.h" see the Fossies "Dox" file reference documentation.

    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:
   30     KStatList *cpustats;
   31     kstat_ctl_t *kc;
   32 };
   33 
   34 #endif