all functions established; needed to remove orphan functions
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user