@cryptotaxi247 / netdata-1 / commits / 39e76282e

fix compilation on windows (#18823)

Costa Tsaousis committed Oct 19, 2024 at 16:26 UTC 39e76282ef0c3ff4ee0ec0a06d165d1588ae9014
3 files changed +11 -10
src/collectors/apps.plugin/apps_output.c
+1 -1
@@ -90,7 +90,7 @@ void send_resource_usage_to_netdata(usec_t dt) {
90 , inodes_changed_counter
91 , links_changed_counter
92 , all_pids_count()
93 - , all_file_len_get()
93 + , all_files_len_get()
94 , apps_groups_targets_count
95 , targets_assignment_counter
96 );
src/collectors/apps.plugin/apps_pid_files.c
+9 -8
@@ -2,6 +2,15 @@
2
3 #include "apps_plugin.h"
4
5 +static uint32_t
6 + all_files_len = 0,
7 + all_files_size = 0;
8 +
9 +uint32_t all_files_len_get(void) {
10 + (void)all_files_size;
11 + return all_files_len;
12 +}
13 +
14 #if (PROCESSES_HAVE_FDS == 1)
15 // ----------------------------------------------------------------------------
16 // file descriptor
@@ -38,14 +47,6 @@ struct file_descriptor {
47 FD_FILETYPE type;
48 } *all_files = NULL;
49
41 -static uint32_t
42 - all_files_len,
43 - all_files_size;
44 -
45 -uint32_t all_file_len_get(void) {
46 - return all_files_len;
47 -}
48 -
50 // ----------------------------------------------------------------------------
51
52 static inline void reallocate_target_fds(struct target *w) {
src/collectors/apps.plugin/apps_plugin.h
+1 -1
@@ -462,7 +462,7 @@ struct pid_fd {
462
463 #define pid_stat_comm(p) (string2str(p->comm))
464 #define pid_stat_cmdline(p) (string2str(p->cmdline))
465 -uint32_t all_file_len_get(void);
465 +uint32_t all_files_len_get(void);
466
467 struct pid_stat {
468 int32_t pid;