public double getRatio() {
    return (double) totalMemorySize.get() / totalDiskSize;
  }
Get the average compression ratio for all closed files
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/flush/CompressionRatio.java