Commit ae33d3a4 authored by Andreas Jung's avatar Andreas Jung

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

parent bffc9db9
...@@ -43,6 +43,11 @@ New Features ...@@ -43,6 +43,11 @@ New Features
There are corresponding methods to read and set the new configuration There are corresponding methods to read and set the new configuration
parameters. parameters.
Bugs Fixed
----------
- fixed Python 2.6 compatibility issue with ZEO/zeoserverlog.py
3.9.0a12 (2009-02-26) 3.9.0a12 (2009-02-26)
===================== =====================
......
...@@ -372,7 +372,7 @@ def minute(f, slice=16, detail=1, summary=1): ...@@ -372,7 +372,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs = [] rs = []
ss = [] ss = []
cs = [] cs = []
as = [] aborts = []
ts = [] ts = []
cls = [] cls = []
...@@ -392,7 +392,7 @@ def minute(f, slice=16, detail=1, summary=1): ...@@ -392,7 +392,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs.append(r) rs.append(r)
ss.append(s) ss.append(s)
cs.append(c) cs.append(c)
as.append(a) aborts.append(a)
ts.append(c+a) ts.append(c+a)
mlast = m mlast = m
r = s = c = a = 0 r = s = c = a = 0
...@@ -417,7 +417,7 @@ def minute(f, slice=16, detail=1, summary=1): ...@@ -417,7 +417,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs.append(r) rs.append(r)
ss.append(s) ss.append(s)
cs.append(c) cs.append(c)
as.append(a) aborts.append(a)
ts.append(c+a) ts.append(c+a)
if summary: if summary:
...@@ -426,11 +426,11 @@ def minute(f, slice=16, detail=1, summary=1): ...@@ -426,11 +426,11 @@ def minute(f, slice=16, detail=1, summary=1):
'75%', '90%', 'max', 'mean')) '75%', '90%', 'max', 'mean'))
print "n=%6d\t" % len(cls), '-'*62 print "n=%6d\t" % len(cls), '-'*62
print 'Clients: \t', '\t'.join(map(str,stats(cls))) print 'Clients: \t', '\t'.join(map(str,stats(cls)))
print 'Reads: \t', '\t'.join(map(str,stats( rs))) print 'Reads: \t', '\t'.join(map(str,stats(rs)))
print 'Stores: \t', '\t'.join(map(str,stats( ss))) print 'Stores: \t', '\t'.join(map(str,stats(ss)))
print 'Commits: \t', '\t'.join(map(str,stats( cs))) print 'Commits: \t', '\t'.join(map(str,stats(cs)))
print 'Aborts: \t', '\t'.join(map(str,stats( as))) print 'Aborts: \t', '\t'.join(map(str,stats(aborts)))
print 'Trans: \t', '\t'.join(map(str,stats( ts))) print 'Trans: \t', '\t'.join(map(str,stats(ts)))
def stats(s): def stats(s):
s.sort() 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