You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kw...@apache.org on 2018/03/29 16:00:47 UTC

qpid-broker-j git commit: QPID-8144: [Broker-J] Correct arithmetic type used when computing utilised direct memory (from int to long).

Repository: qpid-broker-j
Updated Branches:
  refs/heads/master 1d832c616 -> 8e6d2c1f2


QPID-8144: [Broker-J] Correct arithmetic type used when computing utilised direct memory (from int to long).


Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/8e6d2c1f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/8e6d2c1f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/8e6d2c1f

Branch: refs/heads/master
Commit: 8e6d2c1f2cb47df31d7d2ccb8e00dfed6b713a70
Parents: 1d832c6
Author: Keith Wall <kw...@apache.org>
Authored: Thu Mar 29 16:23:46 2018 +0100
Committer: Keith Wall <kw...@apache.org>
Committed: Thu Mar 29 17:00:40 2018 +0100

----------------------------------------------------------------------
 .../org/apache/qpid/server/bytebuffer/QpidByteBufferFactory.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/8e6d2c1f/broker-core/src/main/java/org/apache/qpid/server/bytebuffer/QpidByteBufferFactory.java
----------------------------------------------------------------------
diff --git a/broker-core/src/main/java/org/apache/qpid/server/bytebuffer/QpidByteBufferFactory.java b/broker-core/src/main/java/org/apache/qpid/server/bytebuffer/QpidByteBufferFactory.java
index 32b0ecc..fd74860 100644
--- a/broker-core/src/main/java/org/apache/qpid/server/bytebuffer/QpidByteBufferFactory.java
+++ b/broker-core/src/main/java/org/apache/qpid/server/bytebuffer/QpidByteBufferFactory.java
@@ -366,7 +366,7 @@ final class QpidByteBufferFactory
 
     static long getAllocatedDirectMemorySize()
     {
-        return _pooledBufferSize * getNumberOfBuffersInUse();
+        return (long)_pooledBufferSize * getNumberOfBuffersInUse();
     }
 
     static int getNumberOfBuffersInUse()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org