@@ -1499,21 +1499,18 @@ set_disk_free_limit_command(Config) ->
1499
1499
? MODULE , set_disk_free_limit_command1 , [Config ]).
1500
1500
1501
1501
set_disk_free_limit_command1 (_Config ) ->
1502
- ok = control_action (set_disk_free_limit ,
1503
- [" 2000kiB" ]),
1502
+ rabbit_disk_monitor :set_disk_free_limit (" 2000kiB" ),
1504
1503
2048000 = rabbit_disk_monitor :get_disk_free_limit (),
1505
1504
1506
1505
% % Use an integer
1507
- ok = control_action (set_disk_free_limit ,
1508
- [" mem_relative" , " 1" ]),
1506
+ rabbit_disk_monitor :set_disk_free_limit ({mem_relative , 1 }),
1509
1507
disk_free_limit_to_total_memory_ratio_is (1 ),
1510
1508
1511
1509
% % Use a float
1512
- ok = control_action (set_disk_free_limit ,
1513
- [" mem_relative" , " 1.5" ]),
1510
+ rabbit_disk_monitor :set_disk_free_limit ({mem_relative , 1.5 }),
1514
1511
disk_free_limit_to_total_memory_ratio_is (1.5 ),
1515
1512
1516
- ok = control_action ( set_disk_free_limit , [ " 50MB" ] ),
1513
+ rabbit_disk_monitor : set_disk_free_limit ( " 50MB" ),
1517
1514
passed .
1518
1515
1519
1516
disk_free_limit_to_total_memory_ratio_is (MemRatio ) ->
@@ -1527,10 +1524,10 @@ set_vm_memory_high_watermark_command(Config) ->
1527
1524
? MODULE , set_vm_memory_high_watermark_command1 , [Config ]).
1528
1525
1529
1526
set_vm_memory_high_watermark_command1 (_Config ) ->
1530
- MemLimitRatio = " 1.0" ,
1527
+ MemLimitRatio = 1.0 ,
1531
1528
MemTotal = vm_memory_monitor :get_total_memory (),
1532
1529
1533
- ok = control_action ( set_vm_memory_high_watermark , [ MemLimitRatio ] ),
1530
+ vm_memory_monitor : set_vm_memory_high_watermark ( MemLimitRatio ),
1534
1531
MemLimit = vm_memory_monitor :get_memory_limit (),
1535
1532
case MemLimit of
1536
1533
MemTotal -> ok ;
0 commit comments