X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=i_s%2Fpl_by_user.go;h=ae5b4aa4cd90469546a53bcbf48706fe966338b8;hb=724089cf7925d3e7f54f4b9cf7be341d6fdbe8bf;hp=cd7bf9c79de1022441fa1fb0177631df1ca41768;hpb=c35ba325f2bd7224b5aeaac08ba702272f6cca7b;p=pstop.git diff --git a/i_s/pl_by_user.go b/i_s/pl_by_user.go index cd7bf9c..ae5b4aa 100644 --- a/i_s/pl_by_user.go +++ b/i_s/pl_by_user.go @@ -118,7 +118,8 @@ func (t ByRunTime) Len() int { return len(t) } func (t ByRunTime) Swap(i, j int) { t[i], t[j] = t[j], t[i] } func (t ByRunTime) Less(i, j int) bool { return (t[i].runtime > t[j].runtime) || - ((t[i].runtime == t[j].runtime) && (t[i].connections > t[j].connections)) + ((t[i].runtime == t[j].runtime) && (t[i].connections > t[j].connections)) || + ((t[i].runtime == t[j].runtime) && (t[i].connections == t[j].connections) && (t[i].username < t[j].username)) } func (t pl_by_user_rows) Sort() {