]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
cmds: Quick fix to let "getthreshold" to compile.
authorFlorian Forster <octo@google.com>
Wed, 29 Jul 2020 07:56:45 +0000 (09:56 +0200)
committerFlorian Forster <octo@google.com>
Wed, 29 Jul 2020 07:58:42 +0000 (09:58 +0200)
src/utils/cmds/getthreshold.c

index 0d4e2f1f1592723e300150706637798a95780281..060cbd8655c18cd2365d9cf9c92a31e4593b0dac 100644 (file)
@@ -113,7 +113,8 @@ int handle_getthreshold(FILE *fh, char *buffer) {
     sstrncpy(vl.type_instance, type_instance, sizeof(vl.type_instance));
   sfree(identifier_copy);
 
-  status = ut_search_threshold(&vl, &threshold);
+  /* TODO(octo): pass a metric_t* to ut_search_threshold(). */
+  status = ut_search_threshold(NULL, &threshold);
   if (status == ENOENT) {
     print_to_socket(fh, "-1 No threshold found for identifier %s\n",
                     identifier);