From d38779f3ef17ed8ec653896ea3030d90a733fe83 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Fri, 17 May 2013 16:50:24 +0200 Subject: [PATCH] Remove None in exit code stats --- paralleljobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paralleljobs.py b/paralleljobs.py index 463afbe..5041d40 100755 --- a/paralleljobs.py +++ b/paralleljobs.py @@ -46,7 +46,7 @@ def printStatusInfo(conn): (nodone, perdone, nototal, perwl, nostarted-nodone)) print("Exit code stats:") - c.execute("SELECT exitcode, count(exitcode) AS cnt FROM jobs GROUP BY exitcode ORDER BY exitcode ASC;") + c.execute("SELECT exitcode, count(exitcode) AS cnt FROM jobs WHERE exitcode >= 0 GROUP BY exitcode ORDER BY exitcode ASC;") for code, cnt in c.fetchall(): print(" %3s: %6s (%5.1f%%)" % (code, cnt, 100.0*float(cnt)/nodone)) -- 2.39.5