From 82e5c373c3518ddee57284572ea52e75a69dbffa Mon Sep 17 00:00:00 2001 From: Simon J Mudd Date: Tue, 23 Dec 2014 08:21:27 +0100 Subject: [PATCH] Fix activity by user to better show sleep time --- i_s/pl_by_user.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i_s/pl_by_user.go b/i_s/pl_by_user.go index 78ddc2a..0098417 100644 --- a/i_s/pl_by_user.go +++ b/i_s/pl_by_user.go @@ -38,13 +38,13 @@ type pl_by_user_row struct { type pl_by_user_rows []pl_by_user_row /* -username |Run Time %age|Sleep |Conn Actv|Hosts DBs|Sel Ins Upd Del Oth| -xxxxxxxxxxxxxx|hh:mm:ss 100.0%|hh:mm:ss|9999 9999|9999 999|999 999 999 999 999| +username |Run Time %age|Sleeping %|Conn Actv|Hosts DBs|Sel Ins Upd Del Oth| +xxxxxxxxxxxxxx|hh:mm:ss 100.0%|hh:mm:ss 100.0%|9999 9999|9999 999|999 999 999 999 999| */ func (r *pl_by_user_row) headings() string { - return fmt.Sprintf("%-14s|%8s %6s|%8s %6s|%4s %4s|%5s %3s|%3s %3s %3s %3s %3s|", - "User", "Run Time", "%", "Sleep", "%", "Conn", "Actv", "Hosts", "DBs", "Sel", "Ins", "Upd", "Del", "Oth") + return fmt.Sprintf("%-14s|%-8s %6s|%-8s %6s|%4s %4s|%5s %3s|%3s %3s %3s %3s %3s|", + "User", "Run Time", "%", "Sleeping", "%", "Conn", "Actv", "Hosts", "DBs", "Sel", "Ins", "Upd", "Del", "Oth") } // generate a printable result -- 2.7.4