summaryrefslogtreecommitdiffstats
path: root/src/data_collection/memory/sysinfo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/data_collection/memory/sysinfo.rs')
-rw-r--r--src/data_collection/memory/sysinfo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data_collection/memory/sysinfo.rs b/src/data_collection/memory/sysinfo.rs
index 58ec4e3a..86ef5381 100644
--- a/src/data_collection/memory/sysinfo.rs
+++ b/src/data_collection/memory/sysinfo.rs
@@ -1,6 +1,6 @@
//! Collecting memory data using sysinfo.
-use sysinfo::{System, SystemExt};
+use sysinfo::System;
use crate::data_collection::memory::MemHarvest;
@@ -41,7 +41,7 @@ pub(crate) fn get_swap_usage(sys: &System) -> Option<MemHarvest> {
/// between the available and free memory. Free memory is defined as memory not containing any data,
/// which means cache and buffer memory are not "free". Available memory is defined as memory able
/// to be allocated by processes, which includes cache and buffer memory. On Windows, this will
-/// always be 0. For more information, see [docs](https://docs.rs/sysinfo/0.28.4/sysinfo/trait.SystemExt.html#tymethod.available_memory)
+/// always be 0. For more information, see [docs](https://docs.rs/sysinfo/latest/sysinfo/struct.System.html#method.available_memory)
/// and [memory explanation](https://askubuntu.com/questions/867068/what-is-available-memory-while-using-free-command)
#[cfg(not(target_os = "windows"))]
pub(crate) fn get_cache_usage(sys: &System) -> Option<MemHarvest> {