mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Network detect (#26)
This commit is contained in:
@ -13,7 +13,7 @@ waybar::modules::Memory::Memory(Json::Value config)
|
||||
|
||||
auto waybar::modules::Memory::update() -> void
|
||||
{
|
||||
struct sysinfo info = {};
|
||||
struct sysinfo info = {0};
|
||||
if (sysinfo(&info) == 0) {
|
||||
auto total = info.totalram * info.mem_unit;
|
||||
auto freeram = info.freeram * info.mem_unit;
|
||||
|
Reference in New Issue
Block a user