summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54023ee)
raw | patch | inline | side by side (parent: 54023ee)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 6 Dec 2006 20:50:21 +0000 (21:50 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 6 Dec 2006 20:50:21 +0000 (21:50 +0100) |
Also removed the `filename' member from `data_set_t' because it's not used.
src/load.c | patch | blob | history | |
src/plugin.h | patch | blob | history |
diff --git a/src/load.c b/src/load.c
index e8dabaa19e7232d9ac6fc9ad87ba988b8f195987..bff629dcb06cb9ad6a1c2255c02d2fff65a9fd0a 100644 (file)
--- a/src/load.c
+++ b/src/load.c
#endif
#endif /* defined(HAVE_GETLOADAVG) */
-data_source_t dsrc[3] =
+static data_source_t dsrc[3] =
{
{"shortterm", DS_TYPE_GAUGE, 0.0, 100.0},
{"midterm", DS_TYPE_GAUGE, 0.0, 100.0},
{"longterm", DS_TYPE_GAUGE, 0.0, 100.0}
};
-data_set_t ds =
+static data_set_t ds =
{
"load", 3, dsrc
};
diff --git a/src/plugin.h b/src/plugin.h
index 611fa572507db6a4222095c62f04b00ab17569cd..af691c5dcc172bf620cc48d4bc1fd0bffeeb4b93 100644 (file)
--- a/src/plugin.h
+++ b/src/plugin.h
char type[DATA_MAX_NAME_LEN];
int ds_num;
data_source_t *ds;
- char *filename;
};
typedef struct data_set_s data_set_t;