ajack 2004/01/12 16:01:20 Modified: python/gump/model stats.py Log: Fixing FOGFactor: successes / (failures + prereq_failures) ... no differentiation between a break in this project, or a break due to a dependent project. Maybe sometime cut some slack for re-use or the more folks stand on the shoulders of others the lower their FOG... Revision Changes Path 1.7 +5 -6 jakarta-gump/python/gump/model/stats.py Index: stats.py =================================================================== RCS file: /home/cvs/jakarta-gump/python/gump/model/stats.py,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- stats.py 9 Jan 2004 23:41:41 -0000 1.6 +++ stats.py 13 Jan 2004 00:01:20 -0000 1.7 @@ -85,10 +85,9 @@ self.previousState=STATE_UNSET self.startOfState=0 self.sequenceInState=0 - - + def getFOGFactor(self): - return (self.successes / (self.failures - self.prereqs)) + return round((float(self.successes) / ((float(self.failures) + float(self.prereqs))), 2) def getLastUpdated(self): return (self.lastUpdated)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]