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
This commit is contained in:
Claus Ibsen 2012-09-02 07:12:33 +00:00
parent 5abbfc2200
commit 15b27399e8
1 changed files with 3 additions and 3 deletions

View File

@ -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() );
}
}