]> arthur.barton.de Git - netdata.git/commitdiff
fixed a typo that prevented apps.plugin to evaluate pids above 32768
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 24 Nov 2015 21:44:07 +0000 (23:44 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 24 Nov 2015 21:44:07 +0000 (23:44 +0200)
src/apps_plugin.c

index 8860938f0031b955908c19b2f1e24ebcfba5bc7d..9b761c65b2d4524b76152f2983a7668eccb86142 100755 (executable)
@@ -241,7 +241,7 @@ long get_pid_max(void) {
        }
 
        mpid = atol(procfile_lineword(ff, 0, 0));
-       if(mpid) mpid = 32768;
+       if(!mpid) mpid = 32768;
 
        // procfile_close(ff);
        return mpid;