@cryptotaxi247 / netdata-1 / commits / f1153c398

fixed a typo that prevented apps.plugin to evaluate pids above 32768

Costa Tsaousis (ktsaou) committed Nov 24, 2015 at 23:44 UTC f1153c39829ffc42e0fb35e411a7988e0066c569
1 file changed +1 -1
src/apps_plugin.c
+1 -1
@@ -241,7 +241,7 @@ long get_pid_max(void) {
241 }
242
243 mpid = atol(procfile_lineword(ff, 0, 0));
244 - if(mpid) mpid = 32768;
244 + if(!mpid) mpid = 32768;
245
246 // procfile_close(ff);
247 return mpid;