summaryrefslogtreecommitdiffstats
path: root/runtime/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-02-02 16:15:40 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-02 16:15:40 +0100
commit1049fbbb1c08f2e1348429faa6a8e6050723978e (patch)
tree31e512bb610cbe2cdcd7fbffd362f576b4926ba3 /runtime/src
parentaea172543cb49f1f1e3625f60b49336f59e26c00 (diff)
parentaa153d04e70101596dda0e4ee7228128cdfa39d6 (diff)
downloadiced-1049fbbb1c08f2e1348429faa6a8e6050723978e.tar.gz
iced-1049fbbb1c08f2e1348429faa6a8e6050723978e.tar.bz2
iced-1049fbbb1c08f2e1348429faa6a8e6050723978e.zip
Merge pull request #2223 from brianch/fix-sysinfo-example
Small fix to the Information struct docs and fix memory info. in the system_information example.
Diffstat (limited to '')
-rw-r--r--runtime/src/system/information.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/system/information.rs b/runtime/src/system/information.rs
index 93e7a5a4..0f78f5e9 100644
--- a/runtime/src/system/information.rs
+++ b/runtime/src/system/information.rs
@@ -18,9 +18,9 @@ pub struct Information {
pub cpu_brand: String,
/// The number of physical cores on the processor
pub cpu_cores: Option<usize>,
- /// Total RAM size, KB
+ /// Total RAM size, in bytes
pub memory_total: u64,
- /// Memory used by this process, KB
+ /// Memory used by this process, in bytes
pub memory_used: Option<u64>,
/// Underlying graphics backend for rendering
pub graphics_backend: String,