Skip to content

mem widget reports wrong(?) amount of memory used and it's frozen #271

@sprnza

Description

@sprnza

Hi guys!
I've found that lain.widgets.mem shows wrong (differs with htop and free -h) number of memory used and it is not being refreshed. I use this code to configure the widget.

my_mem = wibox.container.margin()
my_mem:setup {
    id = "mmr",
    widget = lain.widgets.mem(),
    widget:set_align("center"),
    widget:set_text(mem_now.used),
}

And it gets ~200Mb higher I see in htop or free.

awesome v4.0-97-g2c3aebc1 (Harder, Better, Faster, Stronger)
 • Compiled against Lua 5.3.3 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • RandR 1.5 support: ✔
 • LGI version: 0.9.1

Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio

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