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:06:58 UTC

[hbase] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/hbase.git


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

commit c4fb1cd234ab90fcd5e52c712c03450270ed7465
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 ee1ebdb..bf94c5b 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
@@ -90,8 +90,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>