Repository: cassandra Updated Branches: refs/heads/trunk 97859b0a7 -> 6cf15b2b4
fix for througput bits to bytes Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/ea28d368 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/ea28d368 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/ea28d368 Branch: refs/heads/trunk Commit: ea28d36892b72480495629d8df3468f8ecfc9764 Parents: b041a93 Author: Vijay <vijay2...@gmail.com> Authored: Sun Feb 16 13:37:02 2014 -0800 Committer: Vijay <vijay2...@gmail.com> Committed: Sun Feb 16 13:37:02 2014 -0800 ---------------------------------------------------------------------- src/java/org/apache/cassandra/streaming/StreamManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/ea28d368/src/java/org/apache/cassandra/streaming/StreamManager.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/streaming/StreamManager.java b/src/java/org/apache/cassandra/streaming/StreamManager.java index 18cd28b..3fe6179 100644 --- a/src/java/org/apache/cassandra/streaming/StreamManager.java +++ b/src/java/org/apache/cassandra/streaming/StreamManager.java @@ -59,7 +59,7 @@ public class StreamManager implements StreamManagerMBean */ public static RateLimiter getRateLimiter() { - double currentThroughput = ((double) DatabaseDescriptor.getStreamThroughputOutboundMegabitsPerSec()) * 1024 * 1024 * 8; + double currentThroughput = (((double) DatabaseDescriptor.getStreamThroughputOutboundMegabitsPerSec()) * 1024 * 1024 ) / 8; // if throughput is set to 0, throttling is disabled if (currentThroughput == 0) currentThroughput = Double.MAX_VALUE;