From 1b0fe40663e48b315e75a9b1ed74820207f76658 Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Tue, 24 Mar 2020 15:13:12 +0200 Subject: [PATCH] Change the default sort order to Descending 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 --- tools/cachetop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cachetop.py b/tools/cachetop.py index 00b11a8c8fc5..803e2a06b8d0 100755 --- a/tools/cachetop.py +++ b/tools/cachetop.py @@ -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 = """