connect_time is on server.socket, not server
This commit is contained in:
parent
a3a2c1e5a4
commit
6b41834a35
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class Module(ModuleManager.BaseModule):
|
|||
return {"networks": networks, "channels": channels, "users": users}
|
||||
|
||||
def _server_stats(self, server):
|
||||
connected_seconds = time.time()-server.connect_time
|
||||
connected_seconds = time.time()-server.socket.connect_time
|
||||
return {
|
||||
"hostname": server.connection_params.hostname,
|
||||
"port": server.connection_params.port,
|
||||
|
|
Loading…
Reference in a new issue