Skip to content

Commit

Permalink
Fix CPU charts in apps plugin on FreeBSD (netdata#7115)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlvkobal authored and Saruspete committed May 21, 2020
1 parent 13b366e commit 842cee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collectors/apps.plugin/apps_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2569,7 +2569,7 @@ static int collect_data_for_all_processes(void) {

size_t new_procbase_size;

int mib[3] = { CTL_KERN, KERN_PROC, KERN_PROC_ALL };
int mib[3] = { CTL_KERN, KERN_PROC, KERN_PROC_PROC };
if (unlikely(sysctl(mib, 3, NULL, &new_procbase_size, NULL, 0))) {
error("sysctl error: Can't get processes data size");
return 0;
Expand Down

0 comments on commit 842cee2

Please sign in to comment.