From c9ea1f11dec96df04ade463ea9f33062a85c9219 Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 14 Apr 2022 02:11:43 -0300 Subject: Add memory usage to `Information` struct --- native/src/system/information.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'native/src') diff --git a/native/src/system/information.rs b/native/src/system/information.rs index bf0b100c..fa4a835b 100644 --- a/native/src/system/information.rs +++ b/native/src/system/information.rs @@ -1,5 +1,5 @@ /// Contains informations about the system (e.g. system name, processor, memory, graphics adapter). -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct Information { /// Contains the system name. pub system_name: Option, @@ -13,6 +13,8 @@ pub struct Information { pub cpu_cores: Option, /// Contains the total RAM size in KB. pub memory_total: u64, + /// Contains the system used RAM size in KB. + pub memory_used: Option, /// Contains the graphics backend. pub graphics_backend: String, /// Contains the graphics adapter. -- cgit