summaryrefslogtreecommitdiff
path: root/py/demo/Ice/throughput/Server.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-06-11 15:59:31 +0800
committerMatthew Newhook <matthew@zeroc.com>2007-06-11 15:59:31 +0800
commitcec251ca44005882f610ba110b6886dc2112761b (patch)
tree121f94ad141c71838f92e0745819847e31a13eb5 /py/demo/Ice/throughput/Server.py
parentMerged Bernards change for http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id... (diff)
downloadice-cec251ca44005882f610ba110b6886dc2112761b.tar.bz2
ice-cec251ca44005882f610ba110b6886dc2112761b.tar.xz
ice-cec251ca44005882f610ba110b6886dc2112761b.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2039
Diffstat (limited to 'py/demo/Ice/throughput/Server.py')
-rw-r--r--py/demo/Ice/throughput/Server.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/py/demo/Ice/throughput/Server.py b/py/demo/Ice/throughput/Server.py
index cfedb74b425..18ef839ccae 100644
--- a/py/demo/Ice/throughput/Server.py
+++ b/py/demo/Ice/throughput/Server.py
@@ -15,7 +15,7 @@ import Demo
class ThroughputI(Demo.Throughput):
def __init__(self):
- warmup = True
+ warmup = False
bytes = []
bytes[0:Demo.ByteSeqSize] = range(0, Demo.ByteSeqSize)
@@ -41,6 +41,13 @@ class ThroughputI(Demo.Throughput):
self.fixedSeq[i].j = 0
self.fixedSeq[i].d = 0.0
+ def needsWarmup(self, current=None):
+ self.warmup = False
+ return False
+
+ def startWarmup(self, current=None):
+ self.warmup = True
+
def endWarmup(self, current=None):
self.warmup = False