From b2402792530b9537c51e9b4a2f662f1eef42ecff Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Thu, 4 Mar 2021 06:59:33 -0500 Subject: [PATCH] Sort by day --- home/lib/login_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 426cbb2..185fb26 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -730,7 +730,7 @@ ssh_invalid_by_day() { ' \ /var/log/auth.log \ /var/log/auth.log.1 \ - | sort -n -k 1 \ + | sort -k 3 \ | bar_gauge -v width="$(stty size | awk '{print $2}')" -v num=1 -v ch_right=' ' -v ch_left=' ' -v ch_blank=' ' \ | column -t } -- 2.20.1