Skip to content

Increase precision of size-based values #20

@eduardoboucas

Description

@eduardoboucas

Which problem is this feature request solving?

Byte values are being truncated at the unit (e.g. netlify/cli#2169 (comment)). This creates a situation where we detect a change but the value doesn't have enough precision to show it.

Describe the solution you'd like

We could use the minimumFractionDigits option of https://www.npmjs.com/package/pretty-bytes. Not sure whether to do that by default or to somehow make it configurable.

Can you submit a pull request?

Yes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions