mirror of
https://github.com/hoxu/gitstats.git
synced 2026-03-01 18:23:26 +01:00
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:
committed by
Heikki Hokkanen
parent
ad7efbb939
commit
4cce497e96
2
gitstats
2
gitstats
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user