i3status: fix free ram

This commit is contained in:
LordMZTE 2021-10-01 21:00:27 +02:00
parent be25605c01
commit bc7b64b5b4

View file

@ -23,7 +23,7 @@ pub(crate) async fn ram(bar: Arc<RwLock<Bar>>) {
ram = format!(
"{}MB/{}MB",
mem.used().get::<megabyte>(),
mem.free().get::<megabyte>()
mem.available().get::<megabyte>()
);
} else {
ram = String::from("error reading ram :(");