From 8aac2ad78c28462becaa8731922d3358729699e1 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 4 Jun 2018 19:42:27 +0200 Subject: [PATCH] reduce bytes --- src/fenrirscreenreader/screenDriver/ptyDriver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/ptyDriver.py b/src/fenrirscreenreader/screenDriver/ptyDriver.py index 98a388e9..99ba3a0a 100644 --- a/src/fenrirscreenreader/screenDriver/ptyDriver.py +++ b/src/fenrirscreenreader/screenDriver/ptyDriver.py @@ -96,7 +96,7 @@ class driver(screenDriver): self.env['screen']['autoIgnoreScreens'] = [] self.env['general']['prevUser'] = getpass.getuser() self.env['general']['currUser'] = getpass.getuser() - def readAll(self, fd, timeout = 9999999, interruptFd = None, len = 4096): + def readAll(self, fd, timeout = 9999999, interruptFd = None, len = 2048): bytes = b'' fdList = [] fdList += [fd] @@ -182,7 +182,7 @@ class driver(screenDriver): # output if self.p_out in r: try: - msgBytes = self.readAll(self.p_out.fileno(), timeout=0.2, interruptFd=sys.stdin) + msgBytes = self.readAll(self.p_out.fileno(), timeout=0.1, interruptFd=sys.stdin) except (EOFError, OSError): active.value = False break