From 4985747c97ce855ae97d3e8df39ae9135523a000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 8 Jun 2020 14:35:07 +0200 Subject: [PATCH] Fixed skipTimeOnFailure store && integer division on python 3 for client --- client-py3/full/src/UDSClient.py | 4 ++-- server/src/uds/services/PhysicalMachines/service_multi.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client-py3/full/src/UDSClient.py b/client-py3/full/src/UDSClient.py index 56fe8d42..e4055aaa 100755 --- a/client-py3/full/src/UDSClient.py +++ b/client-py3/full/src/UDSClient.py @@ -80,8 +80,8 @@ class UDSClient(QtWidgets.QMainWindow): screen = QtWidgets.QDesktopWidget().screenGeometry() mysize = self.geometry() - hpos = (screen.width() - mysize.width()) / 2 - vpos = (screen.height() - mysize.height() - mysize.height()) / 2 + hpos = (screen.width() - mysize.width()) // 2 + vpos = (screen.height() - mysize.height() - mysize.height()) // 2 self.move(hpos, vpos) self.animTimer = QtCore.QTimer() diff --git a/server/src/uds/services/PhysicalMachines/service_multi.py b/server/src/uds/services/PhysicalMachines/service_multi.py index bbca2ee6..999ac580 100644 --- a/server/src/uds/services/PhysicalMachines/service_multi.py +++ b/server/src/uds/services/PhysicalMachines/service_multi.py @@ -104,6 +104,7 @@ class IPMachinesService(IPServiceBase): self._token = self.token.value.strip() self._port = self.port.value + self._skipTimeOnFailure = self.skipTimeOnFailure.num() def getToken(self): return self._token or None