8000 strings.TrimRight is used instead of TrimSuffix · Issue #507 · prometheus/procfs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
strings.TrimRight is used instead of TrimSuffix #507
Closed
@GrosQuildu

Description

@GrosQuildu

This line aims to remove " kB" suffix, but instead removes all characters from " kB" cutset.

v = strings.TrimRight(v, " kB")

Similar fix as was done in this commit is required - b3d77ec .

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

      0