diff --git a/main.cpp b/main.cpp index d4b4dc9..c79ebc1 100644 --- a/main.cpp +++ b/main.cpp @@ -38,7 +38,7 @@ int main(int argc, char* argv[]) QString watchUser = "portage"; int i = 0; - printf("Draining The Swamp v1.0.6\n"); + printf("Draining The Swamp v1.0.6b\n"); bool stayAtOne = false; bool stayAtTwo = false; diff --git a/womper.cpp b/womper.cpp index ea6cb26..29b8a42 100644 --- a/womper.cpp +++ b/womper.cpp @@ -69,11 +69,6 @@ void Womper::scan() } pi.cmd = columns.at(4); - if(watches.contains(pi.cmd) == false && pi.status != 'T') - { - continue; - } - pi.pid = columns.at(0).toInt(); stat = columns.at(1); if(stat.count()) @@ -86,6 +81,11 @@ void Womper::scan() } pi.rss = columns.at(2).toLong(); + if(watches.contains(pi.cmd) == false && pi.status != 'T') + { + continue; + } + if(pi.status != 'Z') { pids.append(pi.pid);