From: Stefan Huber Date: Fri, 17 May 2013 14:50:24 +0000 (+0200) Subject: Remove None in exit code stats X-Git-Tag: v1.1 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;ds=sidebyside;p=paralleljobs.git Remove None in exit code stats --- 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))