Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Memory bar display fails if anything other than 'mib' is used for memory_unit #2008

@claytonjroberts

Description

@claytonjroberts

Description

When using a bar for memory info (memory_display="bar"), I must have the following in the config file:

memory_unit="mib"

If I have something like the following in the config:

memory_unit="gib"

I get this error:

/usr/local/bin/neofetch: line 4583: 18.50 * bar_length / 32.00: syntax error: invalid arithmetic operator (error token is ".50 * bar_length / 32.00")

Note: I'm running via just neofetch -v

  • Does this issue still occur in the master branch? (Required if issue)

Neofetch version

7.1.0

Screenshot

Screen Shot 2021-12-22 at 1 17 00 AM

Config file

https://gist.github.com/ClaymasterJ/00b8702da639c0ccc2913e7802dc8a56
(^ Working config)

Verbose log

https://pastebin.com/nyfwNbLP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions