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
Currently the TransferSpeedColumn is displaying the transfer speed using the binary/IEC definition of a kilobyte/megabyte/gigabyte (1024x)
Typically, network transfer speeds are specified using the decimal definition (1000x), for example Ethernet (10/100/1000BASE-T), or internet connection speeds (100mbit = 100,000,000,000)
I would like to propose adding the ability to configure which binary prefix (1000x or 1024x) is used for display, as well as configuring to display either bits/s or bytes/s. This would allow developers to be able to tweak formatting to better match their use case.
The default display format would be to continue to use the current format, 1024x , as to ensure that there are no unexpected changes to the existing behavior when updating to a newer version of the package.
Using a data transfer rate of 1,000,000 bytes, the expected output for each configurablee option would be as follows :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Context
Currently the
TransferSpeedColumn
is displaying the transfer speed using the binary/IEC definition of a kilobyte/megabyte/gigabyte (1024x)Typically, network transfer speeds are specified using the decimal definition (1000x), for example Ethernet (10/100/1000BASE-T), or internet connection speeds (100mbit = 100,000,000,000)
https://en.wikipedia.org/wiki/Binary_prefix#Data_transmission_and_clock_rates
Describe the solution you'd like
I would like to propose adding the ability to configure which binary prefix (1000x or 1024x) is used for display, as well as configuring to display either bits/s or bytes/s. This would allow developers to be able to tweak formatting to better match their use case.
The default display format would be to continue to use the current format, 1024x , as to ensure that there are no unexpected changes to the existing behavior when updating to a newer version of the package.
Using a data transfer rate of 1,000,000 bytes, the expected output for each configurablee option would be as follows :
Beta Was this translation helpful? Give feedback.
All reactions