Browse Source

Don't choke on one day old repositories.

Heikki Hokkanen 16 years ago
parent
commit
572c2b774f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      gitstats

+ 1
- 1
gitstats View File

462
 		return res[:limit]
462
 		return res[:limit]
463
 	
463
 	
464
 	def getCommitDeltaDays(self):
464
 	def getCommitDeltaDays(self):
465
-		return (self.last_commit_stamp - self.first_commit_stamp) / 86400
465
+		return (self.last_commit_stamp - self.first_commit_stamp) / 86400 + 1
466
 
466
 
467
 	def getDomainInfo(self, domain):
467
 	def getDomainInfo(self, domain):
468
 		return self.domains[domain]
468
 		return self.domains[domain]