Skip to content

Commit

Permalink
Oops, last fix didn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
K9spud LLC committed Feb 16, 2021
1 parent 8ac447a commit 858613d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions womper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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);
Expand Down

0 comments on commit 858613d

Please sign in to comment.