diff options
Diffstat (limited to '')
-rw-r--r-- | pkgs/by-name/ya/yambar-modules/src/memory.rs (renamed from pkgs/by-name/ya/yambar-memory/src/main.rs) | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/by-name/ya/yambar-memory/src/main.rs b/pkgs/by-name/ya/yambar-modules/src/memory.rs index ea9e6f39..6da714cc 100644 --- a/pkgs/by-name/ya/yambar-memory/src/main.rs +++ b/pkgs/by-name/ya/yambar-modules/src/memory.rs @@ -2,10 +2,9 @@ use std::{thread, time::Duration}; use sysinfo::{System, SystemExt}; -fn main() { +pub fn memory() { let mut sys = System::new(); - // Number of CPUs: loop { sys.refresh_memory(); |