From: Florian Forster Date: Wed, 6 Dec 2006 20:50:21 +0000 (+0100) Subject: load plugin: Made the data source variable `static'. X-Git-Tag: collectd-4.0.0-rc4~165 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db4535ae6cac033d869be59a148c25149bd8f80c;p=collectd.git load plugin: Made the data source variable `static'. Also removed the `filename' member from `data_set_t' because it's not used. --- diff --git a/src/load.c b/src/load.c index e8dabaa1..bff629dc 100644 --- a/src/load.c +++ b/src/load.c @@ -44,14 +44,14 @@ #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 611fa572..af691c5d 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -66,7 +66,6 @@ struct data_set_s char type[DATA_MAX_NAME_LEN]; int ds_num; data_source_t *ds; - char *filename; }; typedef struct data_set_s data_set_t;