hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-17135 Add percentage sign to Backup history output (Vladimir Rodionov)
Date Tue, 22 Nov 2016 21:18:49 GMT
Repository: hbase
Updated Branches:
  refs/heads/HBASE-7912 c2aeb58e7 -> 16a413824


HBASE-17135 Add percentage sign to Backup history output (Vladimir Rodionov)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/16a41382
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/16a41382
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/16a41382

Branch: refs/heads/HBASE-7912
Commit: 16a41382423561e5b9e78bba76bb5ea7cad5009a
Parents: c2aeb58
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Nov 22 13:18:17 2016 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Nov 22 13:18:17 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/backup/BackupInfo.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/16a41382/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupInfo.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupInfo.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupInfo.java
index 45695a9..bc9bb04 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupInfo.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupInfo.java
@@ -52,16 +52,16 @@ public class BackupInfo implements Comparable<BackupInfo> {
   private static final Log LOG = LogFactory.getLog(BackupInfo.class);
 
   public static interface Filter {
-    
+
     /**
      * Filter interface
      * @param info backup info
-     * @return true if info passes filter, false otherwise 
+     * @return true if info passes filter, false otherwise
      */
     public boolean apply(BackupInfo info);
   }
-  
-  /** 
+
+  /**
    * Backup status flag
    */
   public static enum BackupState {
@@ -77,7 +77,7 @@ public class BackupInfo implements Comparable<BackupInfo> {
 
   /**
    *  Backup id
-   */  
+   */
   private String backupId;
 
   /**
@@ -537,7 +537,7 @@ public class BackupInfo implements Comparable<BackupInfo> {
       date = cal.getTime();
       sb.append("End time       : " + date).append("\n");
     }
-    sb.append("Progress       : " + getProgress()).append("\n");
+    sb.append("Progress       : " + getProgress()+"%").append("\n");
     return sb.toString();
   }
 


Mime
View raw message