From: Jonathan Corbet Date: Sat, 21 Mar 2009 21:29:57 +0000 (-0600) Subject: Quick hack to make the developer/employer counts at the top correct X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c0d9831515530f29875a56df997657f62a505577;p=people%2Flarsk%2Fxenproject-org-gitdm.git 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. --- diff --git a/gitdm b/gitdm index 178adf8..04536e4 100755 --- 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: