Fix preamble_size.py.

This commit is contained in:
David Wilson 2018-04-01 23:49:43 +01:00
parent 8425b196e7
commit 586318c475
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ import mitogen.sudo
router = mitogen.master.Router() router = mitogen.master.Router()
context = mitogen.parent.Context(router, 0) context = mitogen.parent.Context(router, 0)
stream = mitogen.ssh.Stream(router, 0, hostname='foo') stream = mitogen.ssh.Stream(router, 0, max_message_size=0, hostname='foo')
print 'SSH command size: %s' % (len(' '.join(stream.get_boot_command())),) print 'SSH command size: %s' % (len(' '.join(stream.get_boot_command())),)
print 'Preamble size: %s (%.2fKiB)' % ( print 'Preamble size: %s (%.2fKiB)' % (