Skip to content

Commit

Permalink
output zero cap
Browse files Browse the repository at this point in the history
  • Loading branch information
VPROFi committed Sep 21, 2023
1 parent d1e69fb commit deea98e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/process/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ std::string Process::GetProcStatus(void) const
memcmp(ptr, "CapEff:\t", 8) == 0 || \
memcmp(ptr, "CapBnd:\t", 8) == 0 ) {
cap = strtoull(&ptr[8], 0, 16);
ptr[strlen(ptr)-2] = 0;
status += ptr;
if( cap ) {
ptr[strlen(ptr)-2] = 0;
status += ptr;
status += " ";
CapabilitiesToString(status, cap);
status += "\n";
}
status += "\n";
}
}
fclose(fs);
Expand Down

0 comments on commit deea98e

Please sign in to comment.