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:39 UTC
[hbase] branch branch-2.1 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.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 eff0e0c HBASE-23361 Limit two decimals in total average load (#897)
eff0e0c is described below
commit eff0e0c86c986cda740a21fa66aede31db85730c
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>