You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearly it states that message size is suppose to be defined in bytes.
But then again, looking at the core.py module, calculation of latency goes like this:
Here transmit has a comment at the end of a line that it's defined in MBITS (Mb) but in fact its presented in MBAJTS (MB) because size_bits variable is actually presented in bytes (we can see that in 1st line of code).
For specific use-cases this confused me because I thought latency was calculated using bits and not bytes because of the comment # MBITS! and variable name size_bits
The text was updated successfully, but these errors were encountered:
MarkoRimac
changed the title
Inconsistency in unit of measurement used for message size
Inconsistency between unit of measurement used for message size and latency calculation
Jan 19, 2021
MarkoRimac
changed the title
Inconsistency between unit of measurement used for message size and latency calculation
Inconsistency between unit of measurement used for message size definition and latency calculation
Jan 19, 2021
Thanks Marko for your point. That function is a little mesh and the name of the variables does not help.
I will try to fix with the right nomenclature since the idea is to work with Bytes, and MB.
Constructor of Message class in application.py module is defined like this:
Clearly it states that message size is suppose to be defined in bytes.
But then again, looking at the core.py module, calculation of latency goes like this:
Here
transmit
has a comment at the end of a line that it's defined in MBITS (Mb) but in fact its presented in MBAJTS (MB) becausesize_bits
variable is actually presented in bytes (we can see that in 1st line of code).For specific use-cases this confused me because I thought latency was calculated using bits and not bytes because of the comment
# MBITS!
and variable namesize_bits
The text was updated successfully, but these errors were encountered: