]> xenbits.xensource.com Git - people/larsk/xenproject-org-gitdm.git/commitdiff
Quick hack to make the developer/employer counts at the top correct
authorJonathan Corbet <corbet@lwn.net>
Sat, 21 Mar 2009 21:29:57 +0000 (15:29 -0600)
committerJonathan Corbet <corbet@lwn.net>
Sat, 21 Mar 2009 21:29:57 +0000 (15:29 -0600)
...before we were counting everybody we knew about, regardless of whether
they did anything in the period we're looking at.

gitdm

diff --git a/gitdm b/gitdm
index 178adf863324c55906669fa047c57e8c9e0bdc19..04536e43d9b9d1a168f283daa315da06fe20c9bd 100755 (executable)
--- a/gitdm
+++ b/gitdm
@@ -357,9 +357,16 @@ if DumpDB:
 #
 hlist = database.AllHackers ()
 elist = database.AllEmployers ()
+ndev = nempl = 0
+for h in hlist:
+    if max (h.added, h.removed) > 0:
+        ndev += 1
+for e in elist:
+    if e.count > 0:
+        nempl += 1
 reports.Write ('Processed %d csets from %d developers\n' % (CSCount,
-                                                            len (hlist)))
-reports.Write ('%d employers found\n' % len (elist))
+                                                            ndev))
+reports.Write ('%d employers found\n' % (nempl))
 reports.Write ('A total of %d lines added, %d removed (delta %d)\n' %
                (TotalAdded, TotalRemoved, TotalAdded - TotalRemoved))
 if TotalChanged == 0: