mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-04 22:00:12 -05:00
Implemented link establishment on ultra low bandwidth links
This commit is contained in:
parent
0e12442a28
commit
f01074e5b8
5 changed files with 95 additions and 6 deletions
|
|
@ -161,6 +161,9 @@ def prettyhexrep(data):
|
|||
hexrep = "<"+delimiter.join("{:02x}".format(c) for c in data)+">"
|
||||
return hexrep
|
||||
|
||||
def prettyspeed(num, suffix="b"):
|
||||
return prettysize(num/8, suffix=suffix)+"ps"
|
||||
|
||||
def prettysize(num, suffix='B'):
|
||||
units = ['','K','M','G','T','P','E','Z']
|
||||
last_unit = 'Y'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue