"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/gnu/loadmeter.h" (11 Jul 2020, 799 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 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:
   32   int warnThreshold, critThreshold, alarmstate, lastalarmstate;
   33 };
   34 
   35 
   36 #endif