diff options
author | Jonathan Corbet <corbet@lwn.net> | 2009-03-21 15:29:57 -0600 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2009-03-21 15:29:57 -0600 |
commit | c0d9831515530f29875a56df997657f62a505577 (patch) | |
tree | bcd4116933f8a0042992b41bfaf4dad5c51c4392 | |
parent | 3f037ead2724697c7b754ecd47757d1ef07425ae (diff) |
Quick hack to make the developer/employer counts at the top correct
...before we were counting everybody we knew about, regardless of whether
they did anything in the period we're looking at.
-rwxr-xr-x | gitdm | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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: |