diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-02-01 22:59:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 22:59:49 +0100 |
commit | adb558c1d03ef4be87192eb5db57f816b9590ec2 (patch) | |
tree | f08115ad3aced5dd5e9e10072e773f3000c48de4 /scripts | |
parent | 96cc7ea40d6f4f08e86677434213cef119cf1748 (diff) | |
download | psutil-adb558c1d03ef4be87192eb5db57f816b9590ec2.tar.gz |
[Windows] connections() refactoring (#1678)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/internal/print_access_denied.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/internal/print_access_denied.py b/scripts/internal/print_access_denied.py index b94e6e00..2c757fd7 100644 --- a/scripts/internal/print_access_denied.py +++ b/scripts/internal/print_access_denied.py @@ -76,7 +76,7 @@ def main(): templ = "%-20s %-5s %-9s %s" s = templ % ("API", "AD", "Percent", "Outcome") print(hilite(s, ok=None, bold=True)) - for methname, ads in sorted(d.items(), key=lambda x: x[1]): + for methname, ads in sorted(d.items(), key=lambda x: (x[1], x[0])): perc = (ads / tot_procs) * 100 outcome = "SUCCESS" if not ads else "ACCESS DENIED" s = templ % (methname, ads, "%6.1f%%" % perc, outcome) |