You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ch...@apache.org on 2017/05/12 06:10:30 UTC
svn commit: r1794925 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java
Author: chetanm
Date: Fri May 12 06:10:29 2017
New Revision: 1794925
URL: http://svn.apache.org/viewvc?rev=1794925&view=rev
Log:
OAK-6080 - Index report service
Print the count even if its zero. Only < 0 is for unknown
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java?rev=1794925&r1=1794924&r2=1794925&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java Fri May 12 06:10:29 2017
@@ -133,11 +133,11 @@ public class IndexPrinter implements Inv
pw.printf(" Last Indexed Upto : %tc%n", info.getIndexedUpToTime());
}
- if (info.getSizeInBytes() > 0){
+ if (info.getSizeInBytes() >= 0){
pw.printf(" Size : %s%n", IOUtils.humanReadableByteCount(info.getSizeInBytes()));
}
- if (info.getEstimatedEntryCount() > 0){
+ if (info.getEstimatedEntryCount() >= 0){
pw.printf(" Estimated entry count : %d%n", info.getEstimatedEntryCount());
}
pw.println();