X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fhddtemp.c;h=00814bd23d36208660595d920bd37f48eef525a7;hb=e1b0c447f57338706d45a485b40da7325faa4f34;hp=505d10f5bf9c389e024c1d3388ea815e1733c530;hpb=0c9a0c0e0abbe3668673f52abaa395584b2bb4e7;p=collectd.git diff --git a/src/hddtemp.c b/src/hddtemp.c index 505d10f5..00814bd2 100644 --- a/src/hddtemp.c +++ b/src/hddtemp.c @@ -50,16 +50,6 @@ #define HDDTEMP_DEF_HOST "127.0.0.1" #define HDDTEMP_DEF_PORT "7634" -static data_source_t data_source_temperature[1] = -{ - {"value", DS_TYPE_GAUGE, -273.15, NAN} -}; - -static data_set_t temperature_ds = -{ - "temperature", 1, data_source_temperature -}; - #if HDDTEMP_HAVE_READ static const char *config_keys[] = { @@ -514,18 +504,12 @@ static int hddtemp_read (void) /* module_register Register collectd plugin. */ -void module_register (modreg_e load) +void module_register (void) { - if (load & MR_DATASETS) - plugin_register_data_set (&temperature_ds); - #if HDDTEMP_HAVE_READ - if (load & MR_READ) - { - plugin_register_config ("hddtemp", hddtemp_config, - config_keys, config_keys_num); - plugin_register_init ("hddtemp", hddtemp_init); - plugin_register_read ("hddtemp", hddtemp_read); - } + plugin_register_config ("hddtemp", hddtemp_config, + config_keys, config_keys_num); + plugin_register_init ("hddtemp", hddtemp_init); + plugin_register_read ("hddtemp", hddtemp_read); #endif /* HDDTEMP_HAVE_READ */ }