]> git.sthu.org Git - paralleljobs.git/commitdiff
Remove None in exit code stats master v1.1
authorStefan Huber <shuber@sthu.org>
Fri, 17 May 2013 14:50:24 +0000 (16:50 +0200)
committerStefan Huber <shuber@sthu.org>
Fri, 17 May 2013 14:50:24 +0000 (16:50 +0200)
paralleljobs.py

index 463afbed086b007596368e7efbfdb981407f0ec3..5041d408b3b32f74d05270ee400feab9ad24c9db 100755 (executable)
@@ -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))