]> arthur.barton.de Git - netdata.git/commitdiff
fixed type that prevented counting fds per process
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 22 Jan 2017 12:19:33 +0000 (14:19 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 22 Jan 2017 12:19:33 +0000 (14:19 +0200)
src/apps_plugin.c

index 572a4065ec1090549b5c52c427f39fe38a817369..0a72190aaff7ccbc3cf1e794a997bd7c6416f7e4 100644 (file)
@@ -2058,9 +2058,9 @@ static inline void aggregate_pid_fds_on_targets(struct pid_stat *p) {
         if(likely(fd <= 0 || fd >= all_files_size))
             continue;
 
-        aggregate_fd_on_target(all_files[fd].type, w);
-        aggregate_fd_on_target(all_files[fd].type, u);
-        aggregate_fd_on_target(all_files[fd].type, g);
+        aggregate_fd_on_target(fd, w);
+        aggregate_fd_on_target(fd, u);
+        aggregate_fd_on_target(fd, g);
     }
 }