Calculate commit delta days with full days.

Make the units on par with active commit days. Previously a new project
committed to yesterday at 23:00 and today at 1:00 would have an age of 1 day
but 2 active days.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
This commit is contained in:
Alexander Strasser
2012-05-20 16:09:13 +02:00
committed by Heikki Hokkanen
parent ad7efbb939
commit 4cce497e96

View File

@@ -581,7 +581,7 @@ class GitDataCollector(DataCollector):
return res[:limit]
def getCommitDeltaDays(self):
return (self.last_commit_stamp - self.first_commit_stamp) / 86400 + 1
return (self.last_commit_stamp / 86400 - self.first_commit_stamp / 86400) + 1
def getDomainInfo(self, domain):
return self.domains[domain]