You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ekaterina Dimitrova (Jira)" <ji...@apache.org> on 2022/01/07 18:23:00 UTC
[jira] [Created] (CASSANDRA-17243) Fix BYTES_PER_MEGABIT in StreamManager
Ekaterina Dimitrova created CASSANDRA-17243:
-----------------------------------------------
Summary: Fix BYTES_PER_MEGABIT in StreamManager
Key: CASSANDRA-17243
URL: https://issues.apache.org/jira/browse/CASSANDRA-17243
Project: Cassandra
Issue Type: Bug
Reporter: Ekaterina Dimitrova
While working on CASSANDRA-15234 I noticed BYTES_PER_MEGABIT constant in the
{code:java}
StreamManager
{code}
class. It was introduced in CASSANDRA-16959.
The current formula converts actually bytes to mebibits.
The change needed for 3.0, 3.11 and 4.0(I am currently changing rate parameters to be in MiB/s for trunk as part of CASSANDRA-15234):
{code:java}
public static final double BYTES_PER_MEGABIT = (1000 * 1000) / 8; // from bits
{code}
CC [~adelapena]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org