diff --git a/src/traits.rs b/src/traits.rs index 4f56dc5..7e50a16 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -199,6 +199,21 @@ impl MemoryReadout for MacOSMemoryReadout { // Get the currently used memory. Ok(256 * 1024) // Return 256mb in kilobytes. } + + fn swap_total(&self) -> Result { + // Get the total amount of swap. + Ok(4096 * 1024) // Return 4096mb in kilobytes. + } + + fn swap_free(&self) -> Result { + // Get the amount of free swap. + Ok(277 * 1024) // Return 277mb in kilobytes. + } + + fn swap_used(&self) -> Result { + // Get the currently used swap. + Ok(4 * 1024) // Return 4mb in kilobytes. + } } ```