Commit c3f138c4 authored by Andreas Jung's avatar Andreas Jung

fixed Python 2.6 compatiblity bug in ZEO/scripts/zeoserverlog.poy

parent 1462cc9c
......@@ -43,6 +43,11 @@ New Features
There are corresponding methods to read and set the new configuration
parameters.
Bugs Fixed
----------
- fixed Python 2.6 compatibility issue with ZEO/zeoserverlog.py
3.9.0a12 (2009-02-26)
=====================
......
......@@ -372,7 +372,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs = []
ss = []
cs = []
as = []
aborts = []
ts = []
cls = []
......@@ -392,7 +392,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs.append(r)
ss.append(s)
cs.append(c)
as.append(a)
aborts.append(a)
ts.append(c+a)
mlast = m
r = s = c = a = 0
......@@ -417,7 +417,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs.append(r)
ss.append(s)
cs.append(c)
as.append(a)
aborts.append(a)
ts.append(c+a)
if summary:
......@@ -426,11 +426,11 @@ def minute(f, slice=16, detail=1, summary=1):
'75%', '90%', 'max', 'mean'))
print "n=%6d\t" % len(cls), '-'*62
print 'Clients: \t', '\t'.join(map(str,stats(cls)))
print 'Reads: \t', '\t'.join(map(str,stats( rs)))
print 'Stores: \t', '\t'.join(map(str,stats( ss)))
print 'Commits: \t', '\t'.join(map(str,stats( cs)))
print 'Aborts: \t', '\t'.join(map(str,stats( as)))
print 'Trans: \t', '\t'.join(map(str,stats( ts)))
print 'Reads: \t', '\t'.join(map(str,stats(rs)))
print 'Stores: \t', '\t'.join(map(str,stats(ss)))
print 'Commits: \t', '\t'.join(map(str,stats(cs)))
print 'Aborts: \t', '\t'.join(map(str,stats(aborts)))
print 'Trans: \t', '\t'.join(map(str,stats(ts)))
def stats(s):
s.sort()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment