From cd31cd432abb99c1e399daecaea92466fb297cc7 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 24 Feb 2014 08:00:43 -0800 Subject: [PATCH] tweak column display --- xwords4/relay/scripts/showrecent.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xwords4/relay/scripts/showrecent.sh b/xwords4/relay/scripts/showrecent.sh index 5c8992e49..278309c68 100755 --- a/xwords4/relay/scripts/showrecent.sh +++ b/xwords4/relay/scripts/showrecent.sh @@ -22,7 +22,7 @@ while [ $# -gt 0 ]; do done QUERY="WHERE NOT -NTOTAL = sum_array(nperdevice)" -COLUMNS=" dead, connname,cid,room,pub, lang, ntotal, nperdevice, ack,nsent,ctime,mtimes" -COLUMNS_AS="dead as D,connname,cid,room,pub as P,lang as L,ntotal as n,nperdevice as nper,ack,nsent,ctime,mtimes" +COLUMNS=" dead, connname,cid,room,pub, lang, ntotal, nperdevice, ack,nsents,ctime,mtimes" +COLUMNS_AS="dead as D,connname,cid,room,pub as P,lang as L,ntotal as n,nperdevice as nper,ack,nsents,ctime,mtimes" -echo "SELECT $COLUMNS_AS FROM ( SELECT $COLUMNS, unnest(mtimes) FROM games $QUERY) AS set GROUP BY $COLUMNS ORDER BY max(unnest) DESC LIMIT $LIMIT;" | psql xwgames +echo "SELECT $COLUMNS_AS FROM ( SELECT $COLUMNS, unnest(mtimes) FROM games $QUERY) AS set GROUP BY $COLUMNS ORDER BY ctime DESC LIMIT $LIMIT;" | psql xwgames