mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 03:01:11 +00:00
Adds metric formatting clientside
- Bump non-zero metrics up to start at 10% fill so we can see them.
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user