Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.72k stars 710 forks source link

[memory] current memory usage is not displayed #3611

Open varqox opened 2 months ago

varqox commented 2 months ago

Hello, the current memory usage is not displayed, it looks like this: image

The log show every 2 seconds the following message:

[error] memory: cannot switch from manual to automatic argument indexing

Waybar's config (section regarding memory):

    "memory": {
        "interval": 2,
        "format": "{used:0.1f}G {}%",
    },

Tried to inspect it, but found no such message in the source code of waybar. Could you help?

pradyparanjpe commented 2 months ago

Have a look at issue #3605.

vp1981 commented 2 months ago

Hello. I have the same issue. Software versions:

$ pacman -Qs waybar
local/waybar 0.11.0-3
    Highly customizable Wayland bar for Sway and Wlroots based compositors
$ pacman -Qs jsoncpp
local/jsoncpp 1.9.6-3
    C++ library for interacting with JSON
$ pacman -Qs fmt | head -n 2
local/fmt 11.0.2-1
    Open-source formatting library for C++
$ pacman -Qs spdlog
local/spdlog 1.14.1-3
    Very fast, header-only/compiled, C++ logging library
pradyparanjpe commented 2 months ago

Try what is suggested here.

vp1981 commented 2 months ago

@pradyparanjpe , thanks! I didn't realize it at first, but then I changed the configuration to

"format": "{used:0.1f}G/{total:0.1f}G {0}%",

(it was just {}%) and it worked!