Lowercased Timecorrection function

This commit is contained in:
shortcutme 2018-09-05 14:32:01 +02:00
parent f1c89f0917
commit 3b7ec3d913
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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