summaryrefslogtreecommitdiff
path: root/py/demo/Ice/throughput/Client.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-08-11 13:02:09 +0000
committerMark Spruiell <mes@zeroc.com>2006-08-11 13:02:09 +0000
commitc078a3026caeffeb84be7ec1c81d8d13f508c7c3 (patch)
tree295cf73efda5a5aaae57cd14c586d931ec6efca3 /py/demo/Ice/throughput/Client.py
parent- Removed latency oneway batch with 2k and 10k tests because there is no (diff)
downloadice-c078a3026caeffeb84be7ec1c81d8d13f508c7c3.tar.bz2
ice-c078a3026caeffeb84be7ec1c81d8d13f508c7c3.tar.xz
ice-c078a3026caeffeb84be7ec1c81d8d13f508c7c3.zip
partial solution for bug 943
Diffstat (limited to 'py/demo/Ice/throughput/Client.py')
-rw-r--r--py/demo/Ice/throughput/Client.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/py/demo/Ice/throughput/Client.py b/py/demo/Ice/throughput/Client.py
index 00a5b11f8a7..553bb4a0bab 100644
--- a/py/demo/Ice/throughput/Client.py
+++ b/py/demo/Ice/throughput/Client.py
@@ -31,8 +31,8 @@ e: Echo (send and receive) sequence
other commands:
s: shutdown server
-"x: exit
-"?: help
+x: exit
+?: help
"""
class Client(Ice.Application):
@@ -50,9 +50,10 @@ class Client(Ice.Application):
return False
throughputOneway = Demo.ThroughputPrx.uncheckedCast(throughput.ice_oneway())
- byteSeq = []
- byteSeq[0:Demo.ByteSeqSize] = range(0, Demo.ByteSeqSize)
- byteSeq = [0 for x in byteSeq]
+ bytes = []
+ bytes[0:Demo.ByteSeqSize] = range(0, Demo.ByteSeqSize)
+ bytes = ['\x00' for x in bytes]
+ byteSeq = ''.join(bytes)
stringSeq = []
stringSeq[0:Demo.StringSeqSize] = range(0, Demo.StringSeqSize)
@@ -119,7 +120,6 @@ class Client(Ice.Application):
elif currentType == '4':
print "fixed-length struct",
-
if c == 'o':
print "sequences of size %d as oneway..." % seqSize
else: