[Zope-Checkins] CVS: Zope2 - requestprofiler.py:1.4
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Thu, 3 May 2001 11:15:08 -0400
Update of /cvs-repository/Zope2/utilities
In directory serenade.digicool.com:/home/chrism/sandboxes/PostRegexTrunk/utilities
Modified Files:
requestprofiler.py
Log Message:
Fixed median bug.
--- Updated File requestprofiler.py in package Zope2 --
--- requestprofiler.py 2001/04/26 02:51:49 1.3
+++ requestprofiler.py 2001/05/03 15:15:08 1.4
@@ -269,8 +269,8 @@
i2 = i + 1
v1 = all[i]
v2 = all[i2]
- if v1 == "NA" or v2 == "NA": return "I"
- else: return (all[i] + all[i2]) / 2
+ if type(v1) is type('') or type(v2) is type(''): return "I"
+ else: return (v1 + v2) / 2
def total(self):
t = 0