From 15b27399e8b26767e68d6c71879cb4cc1a890d9c Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Sun, 2 Sep 2012 07:12:33 +0000 Subject: [PATCH] AMQ-4007: Fixed default values of system usage for GB values to use 1024 multiplier instead of 1000. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1379922 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/BrokerServiceTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java index 24c96459fa..2baf588f97 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java @@ -77,8 +77,8 @@ public class BrokerServiceTest extends TestCase { public void testSystemUsage() { BrokerService service = new BrokerService(); - assertEquals( service.getSystemUsage().getMemoryUsage().getLimit(), 1024 * 1024 * 64 ); - assertEquals( service.getSystemUsage().getTempUsage().getLimit(), 1024L * 1024 * 1000 * 50 ); - assertEquals( service.getSystemUsage().getStoreUsage().getLimit(), 1024L * 1024 * 1000 * 100 ); + assertEquals( 1024 * 1024 * 64, service.getSystemUsage().getMemoryUsage().getLimit() ); + assertEquals( 1024L * 1024 * 1024 * 50, service.getSystemUsage().getTempUsage().getLimit() ); + assertEquals( 1024L * 1024 * 1024 * 100, service.getSystemUsage().getStoreUsage().getLimit() ); } }