diff --git a/src/windows/mod.rs b/src/windows/mod.rs index 8256600e..a1da9968 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -110,7 +110,14 @@ impl MemoryReadout for WindowsMemoryReadout { } fn free(&self) -> Result { - Err(ReadoutError::NotImplemented) + // Subtract used memory from total memory + match self.total() { + Ok(total) => match self.used() { + Ok(used) => Ok(total - used), + Err(e) => Err(e), + }, + Err(e) => Err(e), + } } fn buffers(&self) -> Result {