"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/irix65/loadmeter.h" (11 Jul 2020, 627 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 //  Initial port performed by Stefan Eilemann (eilemann@gmail.com)
    3 //
    4 #ifndef _LOADMETER_H_
    5 #define _LOADMETER_H_
    6 
    7 #include "fieldmetergraph.h"
    8 #include <rpcsvc/rstat.h>
    9 
   10 class LoadMeter : public FieldMeterGraph {
   11  public:
   12     LoadMeter(XOSView *parent);
   13     ~LoadMeter(void);
   14 
   15     const char *name(void) const { return "LoadMeter"; }  
   16     void checkevent(void);
   17 
   18     void checkResources(void);
   19 
   20 protected:
   21     void getloadinfo(void);
   22     
   23     unsigned long procloadcol_, warnloadcol_, critloadcol_;
   24 private:
   25     int warnThreshold, critThreshold, alarmstate, lastalarmstate;
   26     char hostname[256];
   27     struct statstime res;
   28 };
   29 
   30 #endif