Repository: GuillaumeGomez/sysinfo (language: rust)

Issue:
Docs do not tell what to refresh for load_avg()
Hi! The docs do not say which refresh function to call so that the `load_avg` function returns updated values.

Please consider adding the relevant doc!


Discussion / hints:
It is computed every time the method is called and it should indeed but indicated in the documentation. Fixing that right away, thanks for the report!

Fix patch:
diff --git a/src/common.rs b/src/common.rs
index f557f5362..7b0e115a7 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -633,6 +633,8 @@ impl System {
 
     /// Returns the system load average value.
     ///
+    /// **Important**: this information is computed every time this function is called.
+    ///
     /// ⚠️ This is currently not working on **Windows**.
     ///
     /// ```no_run


Test patch: