set: memory free

This commit is contained in:
Nasfame 2024-11-04 23:56:11 +05:30
parent 4a8a79fee9
commit 1457f4b661
No known key found for this signature in database
GPG Key ID: C9FB9DF973DC5C96

View File

@ -92,8 +92,8 @@ async fn get_system_stats(state: State<'_, AppState>) -> Result<SystemStats, Str
cpu_usage: sys.cpus().iter().map(|cpu| cpu.cpu_usage()).collect(),
memory_total: sys.total_memory(),
memory_used: sys.used_memory(),
memory_free: sys.free_memory(),
memory_cached: sys.available_memory(),//TODO:
memory_free: sys.available_memory(),
memory_cached: 0,//TODO:
uptime: sys.uptime(),
load_avg: [load_avg.one, load_avg.five, load_avg.fifteen],
})