File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -960,12 +960,13 @@ public void run() {
960960
961961 public void logStats () {
962962 // Log size
963- long totalSize = heapSize ();
964- long freeSize = maxSize - totalSize ;
965- LruBlockCache .LOG .info ("totalSize=" + StringUtils .byteDesc (totalSize ) + ", " + "freeSize="
966- + StringUtils .byteDesc (freeSize ) + ", " + "max=" + StringUtils .byteDesc (this .maxSize ) + ", "
967- + "blockCount=" + getBlockCount () + ", " + "accesses=" + stats .getRequestCount () + ", "
968- + "hits=" + stats .getHitCount () + ", " + "hitRatio="
963+ long usedSize = heapSize ();
964+ long freeSize = maxSize - usedSize ;
965+ LruBlockCache .LOG .info ("totalSize=" + StringUtils .byteDesc (maxSize ) + ", " + "usedSize="
966+ + StringUtils .byteDesc (usedSize ) + ", " + "freeSize=" + StringUtils .byteDesc (freeSize ) + ", "
967+ + "max=" + StringUtils .byteDesc (this .maxSize ) + ", " + "blockCount=" + getBlockCount () + ", "
968+ + "accesses=" + stats .getRequestCount () + ", " + "hits=" + stats .getHitCount () + ", "
969+ + "hitRatio="
969970 + (stats .getHitCount () == 0
970971 ? "0"
971972 : (StringUtils .formatPercent (stats .getHitRatio (), 2 ) + ", " ))
You can’t perform that action at this time.
0 commit comments