fixed comments
This commit is contained in:
@@ -2,20 +2,20 @@ use anyhow::Result;
|
||||
use std::error::Error;
|
||||
use sysinfo::System;
|
||||
|
||||
//! # CPU Hardware Module
|
||||
//!
|
||||
//! This module provides CPU information collection for WatcherAgent, including load, temperature, and system uptime.
|
||||
//!
|
||||
//! ## Responsibilities
|
||||
//! - **CPU Detection:** Identifies CPU model and core count.
|
||||
//! - **Metric Collection:** Queries CPU load, temperature, and uptime.
|
||||
//! - **Error Handling:** Graceful fallback if metrics are unavailable.
|
||||
//!
|
||||
//! ## Units
|
||||
//! - `current_load`: CPU usage as a percentage (**0.0–100.0**)
|
||||
//! - `current_temp`: CPU temperature in **degrees Celsius (°C)**
|
||||
//! - `uptime`: System uptime in **seconds (s)**
|
||||
//!
|
||||
/// # CPU Hardware Module
|
||||
///
|
||||
/// This module provides CPU information collection for WatcherAgent, including load, temperature, and system uptime.
|
||||
///
|
||||
/// ## Responsibilities
|
||||
/// - **CPU Detection:** Identifies CPU model and core count.
|
||||
/// - **Metric Collection:** Queries CPU load, temperature, and uptime.
|
||||
/// - **Error Handling:** Graceful fallback if metrics are unavailable.
|
||||
///
|
||||
/// ## Units
|
||||
/// - `current_load`: CPU usage as a percentage (**0.0–100.0**)
|
||||
/// - `current_temp`: CPU temperature in **degrees Celsius (°C)**
|
||||
/// - `uptime`: System uptime in **seconds (s)**
|
||||
///
|
||||
/// CPU statistics for the host system.
|
||||
///
|
||||
/// # Fields
|
||||
|
Reference in New Issue
Block a user