update lokinet monitor to work with iwp

pull/1086/head
Jeff Becker 4 years ago
parent e44449b2d5
commit c60a83f7f4
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -94,12 +94,12 @@ class Monitor:
self.win.addstr("paths: {}".format(len(paths)))
for path in paths:
y = self._render_path(y, path, "inbound")
for session in status["remoteSessions"]:
for session in (status["remoteSessions"] or []):
for path in session["paths"]:
y = self._render_path(
y, path, "[active] {}".format(session["currentConvoTag"])
)
for session in status["snodeSessions"]:
for session in (status["snodeSessions"] or []):
for path in session["paths"]:
y = self._render_path(y, path, "[snode]")
return y
@ -201,8 +201,6 @@ class Monitor:
s["remoteAddr"], self.speedOf(s["tx"]), self.speedOf(s["rx"])
)
)
if s["sendBacklog"] > 0:
self.win.addstr("[backlog {}]".format(s["sendBacklog"]))
return y
def display_dht(self, y, data):

Loading…
Cancel
Save