From c4fb1cd234ab90fcd5e52c712c03450270ed7465 Mon Sep 17 00:00:00 2001 From: GeorryHuang <215175212@qq.com> Date: Tue, 18 Feb 2020 10:06:47 +0800 Subject: [PATCH] HBASE-23859 Modify "Block locality" of RegionServer Web UI to human readable percentage (#1176) Signed-off-by: Guanghao Zhang --- .../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 ee1ebdbcb19..bf94c5b29b5 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; <% String.format("%.0f", mWrap.getRequestsPerSecond()) %> <% mWrap.getNumOnlineRegions() %> - <% mWrap.getPercentFileLocal() %> - <% mWrap.getPercentFileLocalSecondaryRegions() %> + <% String.format("%.3f",mWrap.getPercentFileLocal()) %><% "%" %> + <% String.format("%.3f",mWrap.getPercentFileLocalSecondaryRegions()) %><% "%" %> <% mWrap.getNumWALSlowAppend() %>