mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add histogramType for statistics
This commit is contained in:
@@ -220,13 +220,16 @@ public class Options {
|
||||
*
|
||||
* @see createStatistics()
|
||||
*/
|
||||
public long statisticsPtr() {
|
||||
public Statistics statisticsPtr() {
|
||||
assert(isInitialized());
|
||||
|
||||
long statsPtr = statisticsPtr(nativeHandle_);
|
||||
assert(statsPtr != 0);
|
||||
if(statsPtr == 0) {
|
||||
createStatistics();
|
||||
statsPtr = statisticsPtr(nativeHandle_);
|
||||
}
|
||||
|
||||
return statsPtr;
|
||||
return new Statistics(statsPtr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user