mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
Remove duplicate methods in ByteSizeValue (elastic/elasticsearch#20560)
Some methods have been renamed in elastic/elasticsearchelastic/elasticsearch#20560. This commit change a .bytes() call to a .getBytes() call. Original commit: elastic/x-pack-elasticsearch@4a0ff77361
This commit is contained in:
parent
1a7fbf9679
commit
375bf95fb1
@ -163,7 +163,7 @@ public class WatcherScheduleEngineBenchmark {
|
||||
while (start.get()) {
|
||||
NodesStatsResponse response = client.admin().cluster().prepareNodesStats("_master").setJvm(true).get();
|
||||
ByteSizeValue heapUsed = response.getNodes().get(0).getJvm().getMem().getHeapUsed();
|
||||
jvmUsedHeapSpace.inc(heapUsed.bytes());
|
||||
jvmUsedHeapSpace.inc(heapUsed.getBytes());
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
} catch (InterruptedException ignored) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user