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