Skip to content

Commit

Permalink
Change the default sort order to Descending
Browse files Browse the repository at this point in the history
currently with ascending sort the useful information
is commonly beyond the bottom of the terminal window
and it is necessary to reverse the sort manually every execution.

Signed-off-by: Mark Kogan <[email protected]>
  • Loading branch information
mkogan1 authored and yonghong-song committed Mar 28, 2020
1 parent 6b8a896 commit 1b0fe40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cachetop.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def handle_loop(stdscr, args):
stdscr.nodelay(1)
# set default sorting field
sort_field = FIELDS.index(DEFAULT_FIELD)
sort_reverse = False
sort_reverse = True

# load BPF program
bpf_text = """
Expand Down

0 comments on commit 1b0fe40

Please sign in to comment.