fixed comments
This commit is contained in:
@@ -3,18 +3,18 @@ use std::error::Error;
|
||||
use anyhow::Result;
|
||||
use sysinfo::System;
|
||||
|
||||
//! # Memory Hardware Module
|
||||
//!
|
||||
//! This module provides memory information collection for WatcherAgent, including total, used, and free RAM.
|
||||
//!
|
||||
//! ## Responsibilities
|
||||
//! - **Memory Detection:** Queries system for total, used, and free RAM.
|
||||
//! - **Usage Calculation:** Computes memory usage percentage.
|
||||
//! - **Error Handling:** Graceful fallback if metrics are unavailable.
|
||||
//!
|
||||
//! ## Units
|
||||
//! - `total`, `used`, `free`: RAM in **megabytes (MB)**
|
||||
//!
|
||||
/// # Memory Hardware Module
|
||||
///
|
||||
/// This module provides memory information collection for WatcherAgent, including total, used, and free RAM.
|
||||
///
|
||||
/// ## Responsibilities
|
||||
/// - **Memory Detection:** Queries system for total, used, and free RAM.
|
||||
/// - **Usage Calculation:** Computes memory usage percentage.
|
||||
/// - **Error Handling:** Graceful fallback if metrics are unavailable.
|
||||
///
|
||||
/// ## Units
|
||||
/// - `total`, `used`, `free`: RAM in **megabytes (MB)**
|
||||
///
|
||||
/// Memory statistics for the host system.
|
||||
///
|
||||
/// # Fields
|
||||
|
Reference in New Issue
Block a user