From 72b4b02c20018ed6772462335591d6595c9a1c71 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 11 Sep 2012 20:44:07 -0700 Subject: [PATCH] improve messages display --- xwords4/relay/scripts/showinplay.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/relay/scripts/showinplay.sh b/xwords4/relay/scripts/showinplay.sh index b570a4456..9085a54ec 100755 --- a/xwords4/relay/scripts/showinplay.sh +++ b/xwords4/relay/scripts/showinplay.sh @@ -30,8 +30,8 @@ echo "SELECT dead,connname,cid,room,lang,clntVers,ntotal,nperdevice,seeds,ack,ns "FROM games $QUERY ORDER BY NOT dead, connname LIMIT $LIMIT;" \ | psql xwgames -echo "SELECT id, connname, hid, msglen "\ +echo "SELECT connname, hid, count(*), sum(msglen) "\ "FROM msgs where connname in (SELECT connname from games where not games.dead group by connname)" \ - "order by connname, id;" \ + "GROUP BY connname, hid ORDER BY connname;" \ | psql xwgames