You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bi...@apache.org on 2019/12/05 02:20:21 UTC
[hbase] branch branch-2.2 updated: HBASE-23361 Limit two decimals
in total average load (#897)
This is an automated email from the ASF dual-hosted git repository.
binlijin pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.2 by this push:
new 4461443 HBASE-23361 Limit two decimals in total average load (#897)
4461443 is described below
commit 44614438d249d988a876b18d45db45af853ba77d
Author: Karthik Palanisamy <kp...@hortonworks.com>
AuthorDate: Wed Dec 4 18:19:06 2019 -0800
HBASE-23361 Limit two decimals in total average load (#897)
Signed-off-by: GuangxuCheng <gu...@gmail.com>
Signed-off-by: Xu Cang <xu...@apache.org>
---
.../jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon
index 9bd3f5c..7f15aa6 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon
@@ -151,7 +151,7 @@ if (master.getServerManager() != null) {
<td><% totalTables %></td>
<td><% totalRequests %></td>
<td><% totalRegions %></td>
-<td><% master.getServerManager().getAverageLoad() %></td>
+<td><% StringUtils.limitDecimalTo2(master.getServerManager().getAverageLoad()) %></td>
</tr>
</table>
</%def>
@@ -390,4 +390,4 @@ if (master.getServerManager() != null) {
String rsGroupName;
</%args>
<a href=rsgroup.jsp?name=<% rsGroupName %>><% rsGroupName %></a>
-</%def>
\ No newline at end of file
+</%def>