Adds metric formatting clientside

- Bump non-zero metrics up to start at 10% fill so we can see them.
This commit is contained in:
Simon Howe
2016-03-10 14:28:06 +01:00
parent f8a69fa1fa
commit eb66800496
2 changed files with 25 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ function renderHtml(text, unit) {
function makeFormatters(renderFn) {
const formatters = {
filesize(value) {
const obj = filesize(value, {output: 'object'});
const obj = filesize(value, {output: 'object', round: 1});
return renderFn(obj.value, obj.suffix);
},