X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsmart.c;h=2dfb924faa2186deeaf1b50295c82256ef08473d;hb=c07e76d81a7790c265676045e96c88a88a7cc85a;hp=f5850f5f4d12269156e038e2b7860b5a89594239;hpb=be126043c2be20399d7670fe194645292018bde0;p=collectd.git diff --git a/src/smart.c b/src/smart.c index f5850f5f..2dfb924f 100644 --- a/src/smart.c +++ b/src/smart.c @@ -26,9 +26,9 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" -#include "utils_ignorelist.h" +#include "utils/common/common.h" +#include "utils/ignorelist/ignorelist.h" #include #include @@ -42,9 +42,9 @@ static const char *config_keys[] = {"Disk", "IgnoreSelected", "IgnoreSleepMode", static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static ignorelist_t *ignorelist = NULL; -static int ignore_sleep_mode = 0; -static int use_serial = 0; +static ignorelist_t *ignorelist; +static int ignore_sleep_mode; +static int use_serial; static int smart_config(const char *key, const char *value) { if (ignorelist == NULL) @@ -117,8 +117,8 @@ static void handle_attribute(SkDisk *d, const SkSmartAttributeParsedData *a, sstrncpy(notif.plugin_instance, name, sizeof(notif.plugin_instance)); sstrncpy(notif.type_instance, a->name, sizeof(notif.type_instance)); snprintf(notif.message, sizeof(notif.message), - "attribute %s is below allowed threshold (%d < %d)", a->name, - a->current_value, a->threshold); + "attribute %s is below allowed threshold (%d < %d)", a->name, + a->current_value, a->threshold); plugin_dispatch_notification(¬if); } }