@cryptotaxi247 / netdata-1 / commits / eb9571ad0

fixed type that prevented counting fds per process

Costa Tsaousis (ktsaou) committed Jan 22, 2017 at 14:19 UTC eb9571ad02b4b148b85c9f59e5ade50a963c6163
1 file changed +3 -3
src/apps_plugin.c
+3 -3
@@ -2058,9 +2058,9 @@ static inline void aggregate_pid_fds_on_targets(struct pid_stat *p) {
2058 if(likely(fd <= 0 || fd >= all_files_size))
2059 continue;
2060
2061 - aggregate_fd_on_target(all_files[fd].type, w);
2062 - aggregate_fd_on_target(all_files[fd].type, u);
2063 - aggregate_fd_on_target(all_files[fd].type, g);
2061 + aggregate_fd_on_target(fd, w);
2062 + aggregate_fd_on_target(fd, u);
2063 + aggregate_fd_on_target(fd, g);
2064 }
2065 }
2066