Skip to content

Commit 4461443

Browse files
Karthik Palanisamybinlijin
authored andcommitted
HBASE-23361 Limit two decimals in total average load (#897)
Signed-off-by: GuangxuCheng <guangxucheng@gmail.com> Signed-off-by: Xu Cang <xucang@apache.org>
1 parent 7cb7946 commit 4461443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ if (master.getServerManager() != null) {
151151
<td><% totalTables %></td>
152152
<td><% totalRequests %></td>
153153
<td><% totalRegions %></td>
154-
<td><% master.getServerManager().getAverageLoad() %></td>
154+
<td><% StringUtils.limitDecimalTo2(master.getServerManager().getAverageLoad()) %></td>
155155
</tr>
156156
</table>
157157
</%def>
@@ -390,4 +390,4 @@ if (master.getServerManager() != null) {
390390
String rsGroupName;
391391
</%args>
392392
<a href=rsgroup.jsp?name=<% rsGroupName %>><% rsGroupName %></a>
393-
</%def>
393+
</%def>

0 commit comments

Comments
 (0)