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>
This commit is contained in:
Karthik Palanisamy 2019-12-04 18:19:06 -08:00 committed by binlijin
parent bc8f1210ff
commit 3e21bcf6d4
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ if (master.getServerManager() != null) {
<td><% totalTables %></td> <td><% totalTables %></td>
<td><% totalRequests %></td> <td><% totalRequests %></td>
<td><% totalRegions %></td> <td><% totalRegions %></td>
<td><% master.getServerManager().getAverageLoad() %></td> <td><% StringUtils.limitDecimalTo2(master.getServerManager().getAverageLoad()) %></td>
</tr> </tr>
</table> </table>
</%def> </%def>
@ -390,4 +390,4 @@ if (master.getServerManager() != null) {
String rsGroupName; String rsGroupName;
</%args> </%args>
<a href=rsgroup.jsp?name=<% rsGroupName %>><% rsGroupName %></a> <a href=rsgroup.jsp?name=<% rsGroupName %>><% rsGroupName %></a>
</%def> </%def>