From 701bf22af65b0968bfe45fc732bb102f81df46d7 Mon Sep 17 00:00:00 2001 From: brianch Date: Wed, 31 Jan 2024 15:00:13 -0300 Subject: The memory information is returned in bytes and not kb. Fix the documentation of the Information struct, and the example system_information that uses it. Co-authored-by: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com> --- runtime/src/system/information.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime') 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, - /// 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, /// Underlying graphics backend for rendering pub graphics_backend: String, -- cgit