Skip to content

Commit

Permalink
Merge pull request collectd#4248 from octo/disk-linux
Browse files Browse the repository at this point in the history
disk plugin: Build `disk_submit_single` on Linux only.
  • Loading branch information
octo authored Jan 23, 2024
2 parents 88c0fd3 + 0fcb7a7 commit 3a48ff2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ static int disk_shutdown(void) {
return 0;
} /* int disk_shutdown */

#if KERNEL_LINUX
static void disk_submit_single(const char *plugin_instance, const char *type,
derive_t value) {
value_list_t vl = VALUE_LIST_INIT;
Expand All @@ -322,6 +323,7 @@ static void disk_submit_single(const char *plugin_instance, const char *type,

plugin_dispatch_values(&vl);
} /* void disk_submit_single */
#endif

static void disk_submit(const char *plugin_instance, const char *type,
derive_t read, derive_t write) {
Expand Down

0 comments on commit 3a48ff2

Please sign in to comment.