"Fossies" - the Fresh Open Source Software Archive 
Member "xosview-1.23/bsd/diskmeter.h" (11 Jul 2020, 966 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 // NetBSD port:
3 // Copyright (c) 1995,1996,1997 Brian Grayson(bgrayson@netbsd.org)
4 //
5 // This file was written by Brian Grayson for the NetBSD and xosview
6 // projects.
7 // This file may be distributed under terms of the GPL or of the BSD
8 // license, whichever you choose. The full license notices are
9 // contained in the files COPYING.GPL and COPYING.BSD, which you
10 // should have received. If not, contact one of the xosview
11 // authors for a copy.
12 //
13
14 #ifndef _DISKMETER_H_
15 #define _DISKMETER_H_
16
17 #include "fieldmetergraph.h"
18 #include "xosview.h"
19 #include "defines.h"
20
21
22 class DiskMeter : public FieldMeterGraph {
23 public:
24 DiskMeter( XOSView *parent, double max );
25 ~DiskMeter( void );
26
27 const char *name( void ) const { return "DiskMeter"; }
28 void checkevent( void );
29 void checkResources( void );
30
31 protected:
32 void getstats( void );
33
34 private:
35 #ifndef HAVE_DEVSTAT
36 uint64_t prevreads_, prevwrites_;
37 #endif
38 double maxBandwidth_;
39 };
40
41
42 #endif