Skip to content

hugetop: print human readable sizes by default #687

@Franklin-Qi

Description

@Franklin-Qi

Original size format

$ cargo run -q hugetop 
hugetop - Thu Apr 30 16:34:42 2026
node(s): 2048kB - 0/0, 1048576kB - 0/0

Consistent with the hugetop command of procps-ng, change the default size to a format suitable for human reading

$ cargo run -q hugetop 
hugetop - Thu Apr 30 16:34:42 2026
node(s): 2.0Mi - 0/0, 1.0Gi - 0/0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions