HDFS-9065. Include commas on # of files, blocks, total filesystem objects in NN Web UI. Contributed by Daniel Templeton.
This commit is contained in:
parent
76957a485b
commit
d777757d21
@ -912,6 +912,9 @@ Release 2.8.0 - UNRELEASED
|
||||
HDFS-9010. Replace NameNode.DEFAULT_PORT with HdfsClientConfigKeys.
|
||||
DFS_NAMENODE_RPC_PORT_DEFAULT config key. (Mingliang Liu via wheat9)
|
||||
|
||||
HDFS-9065. Include commas on # of files, blocks, total filesystem objects
|
||||
in NN Web UI. (Daniel Templeton via wheat9)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||
|
@ -145,7 +145,7 @@
|
||||
|
||||
<p>
|
||||
{#fs}
|
||||
{FilesTotal} files and directories, {BlocksTotal} blocks = {@math key="{FilesTotal}" method="add" operand="{BlocksTotal}"/} total filesystem object(s).
|
||||
{FilesTotal|fmt_number} files and directories, {BlocksTotal|fmt_number} blocks = {ObjectsTotal|fmt_number} total filesystem object(s).
|
||||
{#helper_fs_max_objects/}
|
||||
{/fs}
|
||||
</p>
|
||||
|
@ -103,6 +103,9 @@
|
||||
b.capacityUsedPercentage = b.capacityUsed * 100.0 / b.capacityTotal;
|
||||
b.capacityRemainingPercentage = b.capacityRemaining * 100.0 / b.capacityTotal;
|
||||
}
|
||||
|
||||
data.fs.ObjectsTotal = data.fs.FilesTotal + data.fs.BlocksTotal;
|
||||
|
||||
render();
|
||||
}),
|
||||
function (url, jqxhr, text, err) {
|
||||
|
@ -92,6 +92,10 @@
|
||||
|
||||
'helper_to_acl_bit': function (v) {
|
||||
return v ? '+' : "";
|
||||
},
|
||||
|
||||
'fmt_number': function (v) {
|
||||
return v.toLocaleString();
|
||||
}
|
||||
};
|
||||
$.extend(dust.filters, filters);
|
||||
|
Loading…
Reference in New Issue
Block a user