Add debugging code in keepChannels
This commit is contained in:
parent
bdb2949d17
commit
1b68568fb7
|
@ -319,6 +319,8 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
|
||||||
siglist = [i[0] for i in listinfo if int(i[1]) > mean]
|
siglist = [i[0] for i in listinfo if int(i[1]) > mean]
|
||||||
if len(siglist) > max_chans:
|
if len(siglist) > max_chans:
|
||||||
max_chans = len(siglist)-1
|
max_chans = len(siglist)-1
|
||||||
|
debug(f"keepChannels() {net}: siglist:{siglist} max_chans:{max_chans} len_sig:{len(siglist)} len_max:{len(max_chans)}")
|
||||||
|
|
||||||
chosen = sorted(siglist, reverse=True, key=lambda x: x[1])[:max_chans]
|
chosen = sorted(siglist, reverse=True, key=lambda x: x[1])[:max_chans]
|
||||||
debug(f"keepChannels() {net}: joining {len(chosen)}/{len(siglist)} channels")
|
debug(f"keepChannels() {net}: joining {len(chosen)}/{len(siglist)} channels")
|
||||||
trace(f"keepChannels() {net}: joining:{chosen}")
|
trace(f"keepChannels() {net}: joining:{chosen}")
|
||||||
|
|
Loading…
Reference in New Issue