Skip to content

Commit

Permalink
[scusage] minor improvement in output (remove debug output)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-wan-kenobi committed Sep 16, 2022
1 parent b381560 commit c9d9c9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/scusage
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def run():

def bar(amount, max):
width = 30
print(f"{width} {amount} {max}")
return "="*int((amount*width)/max)

def print_result(counts):
Expand All @@ -35,7 +34,7 @@ def print_result(counts):
if not max:
max = v
data.append([k, f"{v} ({v/total*100:.0f}%)", bar(v, max)])
print(tabulate.tabulate(data, headers=["binding", "count", ""]))
print(tabulate.tabulate(data, headers=["shortcut", "count", ""]))

if __name__ == "__main__":
run()

0 comments on commit c9d9c9e

Please sign in to comment.