all functions established; needed to remove orphan functions

This commit is contained in:
2025-08-08 23:28:05 +02:00
parent abfa0b6fc0
commit 93a40fe584
6 changed files with 22 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ pub async fn get_memory_info() -> Result<MemoryInfo> {
})
}
pub fn get_memory_usage(sys: &mut System) -> f64 {
pub fn _get_memory_usage(sys: &mut System) -> f64 {
sys.refresh_memory();
(sys.used_memory() as f64 / sys.total_memory() as f64) * 100.0
}