"Fossies" - the Fresh Open Source Software Archive

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

    1 //  
    2 //  Copyright (c) 1999 by Mike Romberg (romberg@fsl.noaa.gov)
    3 //
    4 //  This file may be distributed under terms of the GPL
    5 //
    6 
    7 #ifndef _DISKMETER_H_
    8 #define _DISKMETER_H_
    9 
   10 #include "fieldmetergraph.h"
   11 #include "xosview.h"
   12 #include "kstats.h"
   13 #include <kstat.h>
   14 
   15 
   16 class DiskMeter : public FieldMeterGraph {
   17  public:
   18     DiskMeter( XOSView *parent, kstat_ctl_t *kc, float max );
   19     ~DiskMeter( void );
   20 
   21     const char *name( void ) const { return "DiskMeter"; }
   22     void checkevent( void );
   23     void checkResources( void );
   24 
   25  protected:
   26     void getdiskinfo( void );
   27 
   28  private:
   29     uint64_t _read_prev, _write_prev;
   30     float _maxspeed;
   31     kstat_ctl_t *_kc;
   32     KStatList *_disks;
   33 };
   34 
   35 #endif