0cc9003e358bfb4249efb6f74b844c6096f43390
[monky] / src / diskio.h
1 /*
2  * Conky, a system monitor, based on torsmo
3  *
4  * Any original torsmo code is licensed under the BSD license
5  *
6  * All code written since the fork of torsmo is licensed under the GPL
7  *
8  * Please see COPYING for details
9  *
10  * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
11  * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
12  * (see AUTHORS)
13  * All rights reserved.
14  *
15  * This program is free software: you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation, either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  * You should have received a copy of the GNU General Public License
25  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
26  *
27  */
28
29 #ifndef DISKIO_H_
30 #define DISKIO_H_
31
32 struct diskio_stat {
33         struct diskio_stat *next;
34         char *dev;
35         double sample[15];
36         double sample_read[15];
37         double sample_write[15];
38         double current;
39         double current_read;
40         double current_write;
41         double last;
42         double last_read;
43         double last_write;
44 };
45
46 struct diskio_stat *prepare_diskio_stat(const char *s);
47 void update_diskio(void);
48 void clear_diskio_stats(void);
49
50 #endif /* DISKIO_H_ */