From c51c86a735900403ad082596dae81ef723b4ff0d Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Tue, 28 Apr 2015 10:31:56 +0200 Subject: [PATCH] status: local change, connect to the right pgsql cluster --- bin/status | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/status b/bin/status index 6aa9b84..8a3105f 100755 --- a/bin/status +++ b/bin/status @@ -7,8 +7,12 @@ # intended usage: watch -n 60 bin/status DBNAME="github" +DBCONN="-p 5433" -echo "SELECT COUNT(*), MAX(id) FROM repos" | psql "$DBNAME" -echo "\\l+ ${DBNAME}" | psql "$DBNAME" +psql="psql $DBCONN --no-psqlrc" + +ps auxw | grep bin/batch +echo "SELECT COUNT(*), MAX(id) FROM repos" | $psql "$DBNAME" +echo "\\l+ ${DBNAME}" | $psql "$DBNAME" du -sh cache/ zgrep -i --color=auto "'X-RateLimit-Remaining'" cache/$(ls -t cache/ | head -n 4 | tail -n 1)