From 3b7ec3d9130030a9506e7d1ef31d303d8c9f5562 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Wed, 5 Sep 2018 14:32:01 +0200 Subject: [PATCH] Lowercased Timecorrection function --- plugins/Stats/StatsPlugin.py | 2 +- src/Connection/ConnectionServer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Stats/StatsPlugin.py b/plugins/Stats/StatsPlugin.py index 017d0504..f675b37a 100644 --- a/plugins/Stats/StatsPlugin.py +++ b/plugins/Stats/StatsPlugin.py @@ -76,7 +76,7 @@ class UiRequestPlugin(object): float(main.file_server.bytes_sent) / 1024 / 1024 ) yield "Peerid: %s | " % main.file_server.peer_id - yield "Time correction: %.2fs" % main.file_server.getTimeCorrection() + yield "Time correction: %.2fs" % main.file_server.getTimecorrection() try: import psutil diff --git a/src/Connection/ConnectionServer.py b/src/Connection/ConnectionServer.py index 1852437f..ab1a06ee 100644 --- a/src/Connection/ConnectionServer.py +++ b/src/Connection/ConnectionServer.py @@ -312,7 +312,7 @@ class ConnectionServer(object): def onInternetOffline(self): self.log.info("Internet offline") - def getTimeCorrection(self): + def getTimecorrection(self): corrections = sorted([ connection.handshake.get("time") - connection.handshake_time + connection.last_ping_delay for connection in self.connections