mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-20 04:34:19 -04:00
Improved logging and rnpath output
This commit is contained in:
parent
104b186047
commit
5e6a1add6b
2 changed files with 18 additions and 14 deletions
|
@ -37,7 +37,11 @@ def program_setup(configdir, table, drop, destination_hexhash, verbosity):
|
|||
|
||||
for path in table:
|
||||
exp_str = RNS.timestamp_str(path["expires"])
|
||||
print(RNS.prettyhexrep(path["hash"])+" is "+str(path["hops"])+" hops away via "+RNS.prettyhexrep(path["via"])+" on "+path["interface"]+" expires "+RNS.timestamp_str(path["expires"]))
|
||||
if path["hops"] == 1:
|
||||
m_str = " "
|
||||
else:
|
||||
m_str = "s"
|
||||
print(RNS.prettyhexrep(path["hash"])+" is "+str(path["hops"])+" hop"+m_str+" away via "+RNS.prettyhexrep(path["via"])+" on "+path["interface"]+" expires "+RNS.timestamp_str(path["expires"]))
|
||||
|
||||
elif drop:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue