You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zg...@apache.org on 2020/02/18 02:15:22 UTC

[hbase] branch branch-2.1 updated: HBASE-23859 Modify "Block locality" of RegionServer Web UI to human readable percentage (#1176)

This is an automated email from the ASF dual-hosted git repository.

zghao pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new bc162b1  HBASE-23859 Modify "Block locality" of RegionServer Web UI to human readable percentage (#1176)
bc162b1 is described below

commit bc162b1cae9438574f057a4a4a3b960359a9df55
Author: GeorryHuang <21...@qq.com>
AuthorDate: Tue Feb 18 10:06:47 2020 +0800

    HBASE-23859 Modify "Block locality" of RegionServer Web UI to human readable percentage (#1176)
    
    Signed-off-by: Guanghao Zhang <zg...@apache.org>
---
 .../org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon
index adcfff1..7e1ef84 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon
@@ -84,8 +84,8 @@ org.apache.hadoop.hbase.io.util.MemorySizeUtil;
     <tr>
         <td><% String.format("%.0f", mWrap.getRequestsPerSecond()) %></td>
         <td><% mWrap.getNumOnlineRegions() %></td>
-        <td><% mWrap.getPercentFileLocal() %></td>
-        <td><% mWrap.getPercentFileLocalSecondaryRegions() %></td>
+        <td><% String.format("%.3f",mWrap.getPercentFileLocal()) %><% "%" %></td>
+        <td><% String.format("%.3f",mWrap.getPercentFileLocalSecondaryRegions()) %><% "%" %></td>
         <td><% mWrap.getNumWALSlowAppend() %></td>
     </tr>
 </table>