HBASE-23859 Modify "Block locality" of RegionServer Web UI to human readable percentage (#1176)

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
GeorryHuang 2020-02-18 10:06:47 +08:00 committed by GitHub
parent 0140d3f3fe
commit c4fb1cd234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ org.apache.hadoop.hbase.io.util.MemorySizeUtil;
<tr> <tr>
<td><% String.format("%.0f", mWrap.getRequestsPerSecond()) %></td> <td><% String.format("%.0f", mWrap.getRequestsPerSecond()) %></td>
<td><% mWrap.getNumOnlineRegions() %></td> <td><% mWrap.getNumOnlineRegions() %></td>
<td><% mWrap.getPercentFileLocal() %></td> <td><% String.format("%.3f",mWrap.getPercentFileLocal()) %><% "%" %></td>
<td><% mWrap.getPercentFileLocalSecondaryRegions() %></td> <td><% String.format("%.3f",mWrap.getPercentFileLocalSecondaryRegions()) %><% "%" %></td>
<td><% mWrap.getNumWALSlowAppend() %></td> <td><% mWrap.getNumWALSlowAppend() %></td>
</tr> </tr>
</table> </table>