HBASE-23325 [UI]rsgoup average load keep two decimals (#860)

Signed-off-by: Guangxu Cheng <gxcheng@apache.org>
This commit is contained in:
xuqinya1 2019-11-22 14:29:45 +08:00 committed by Guangxu Cheng
parent 0b49e3a174
commit ca6059f4db
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ ServerManager serverManager;
org.apache.hadoop.hbase.master.ServerManager;
org.apache.hadoop.hbase.net.Address;
org.apache.hadoop.hbase.rsgroup.RSGroupInfo;
org.apache.hadoop.util.StringUtils;
org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
</%import>
<%java>
@ -139,7 +140,7 @@ if (master.getServerManager() != null) {
<td><% tables %></td>
<td><% requestsPerSecond %></td>
<td><% numRegionsOnline %></td>
<td><% avgLoad %></td>
<td><% StringUtils.limitDecimalTo2(avgLoad) %></td>
</tr>
<%java>
}