mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-09 18:05:45 -04:00
Added ability to query physical layer stats on links
This commit is contained in:
parent
a451b987aa
commit
798dfb1727
6 changed files with 89 additions and 22 deletions
|
@ -175,7 +175,7 @@ class Resource:
|
|||
if not resource.link.has_incoming_resource(resource):
|
||||
resource.link.register_incoming_resource(resource)
|
||||
|
||||
RNS.log("Accepting resource advertisement for "+RNS.prettyhexrep(resource.hash), RNS.LOG_DEBUG)
|
||||
RNS.log(f"Accepting resource advertisement for {RNS.prettyhexrep(resource.hash)}. Transfer size is {RNS.prettysize(resource.size)} in {resource.total_parts} parts.", RNS.LOG_DEBUG)
|
||||
if resource.link.callbacks.resource_started != None:
|
||||
try:
|
||||
resource.link.callbacks.resource_started(resource)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue