[stream-refactor] repair preamble_size.py again

This commit is contained in:
David Wilson 2019-07-28 11:20:39 +01:00
parent c02358698b
commit fc57c1d1a0
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ router = mitogen.master.Router()
context = mitogen.parent.Context(router, 0) context = mitogen.parent.Context(router, 0)
options = mitogen.ssh.Options(max_message_size=0, hostname='foo') options = mitogen.ssh.Options(max_message_size=0, hostname='foo')
conn = mitogen.ssh.Connection(options, router) conn = mitogen.ssh.Connection(options, router)
conn.context_id = 123 conn.context = context
print('SSH command size: %s' % (len(' '.join(conn.get_boot_command())),)) print('SSH command size: %s' % (len(' '.join(conn.get_boot_command())),))
print('Preamble size: %s (%.2fKiB)' % ( print('Preamble size: %s (%.2fKiB)' % (