mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
show only those devids in the visible games
This commit is contained in:
parent
664807d7c6
commit
787367071d
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ echo -n "Device (pid) count: $(pidof xwords | wc | awk '{print $2}')"
|
|||
echo "; relay pid[s]: $(pidof xwrelay)"
|
||||
echo "Row count:" $(psql -t xwgames -c "select count(*) FROM games $QUERY;")
|
||||
|
||||
echo "SELECT dead,connname,cid,room,lang as lg,clntVers as cv ,ntotal as tot,nperdevice as nPerDev,seeds,tokens,ack,nsents as snts "\
|
||||
echo "SELECT dead as d,connname,cid,room,lang as lg,clntVers as cv ,ntotal as t,nperdevice as nPerDev,nsents as snts, seeds,devids,tokens,ack "\
|
||||
"FROM games $QUERY ORDER BY NOT dead, connname LIMIT $LIMIT;" \
|
||||
| psql xwgames
|
||||
|
||||
|
@ -36,6 +36,6 @@ echo "SELECT connname, hid, devid, count(*), sum(msglen) "\
|
|||
"GROUP BY connname, hid, devid ORDER BY connname;" \
|
||||
| psql xwgames
|
||||
|
||||
echo "SELECT * from devices;" \
|
||||
echo "SELECT * FROM devices WHERE id IN (select UNNEST(devids) FROM games $QUERY) ORDER BY id;" \
|
||||
| psql xwgames
|
||||
|
||||
|
|
Loading…
Reference in a new issue