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:
Tanguy Leroux 2016-09-20 14:07:02 +02:00
parent 1a7fbf9679
commit 375bf95fb1

View File

@ -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) {}