-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
262 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
pub struct CpuData { | ||
/// null | ||
/// Product model | ||
pub model: Option<String>, | ||
/// null | ||
/// Vendor name | ||
pub vendor: Option<String>, | ||
/// The specified frequency in Hertz | ||
pub frequency_spec: u64, | ||
/// Actual frequency in Hertz | ||
pub frequency: u64, | ||
/// The size of the L1 cache in bytes | ||
pub l1_cache: u64, | ||
pub l1_cache: Option<u64>, | ||
/// The size of the L2 cache in bytes | ||
pub l2_cache: u64, | ||
pub l2_cache: Option<u64>, | ||
/// The size of the L3 cache in bytes | ||
pub l3_cache: u64, | ||
pub l3_cache: Option<u64>, | ||
/// The size of the L4 cache in bytes | ||
pub l4_cache: u64, | ||
} | ||
|
||
pub struct CpuCoreData { | ||
pub l4_cache: Option<u64>, | ||
/// The core's usage between 0.0 and 1.0 | ||
pub usage: Double, | ||
pub usage: f64, | ||
/// The core's temperature in Celsius | ||
pub temperature: Double, | ||
pub temperature: Option<f64>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
/// null | ||
pub name: java.lang.String, | ||
/// null | ||
pub model: java.lang.String, | ||
/// null | ||
pub serial: java.lang.String, | ||
/// The disk's total size in bytes | ||
pub size: java.lang.Long, | ||
/// null | ||
pub reads: java.lang.Long, | ||
/// null | ||
pub read_bytes: java.lang.Long, | ||
/// null | ||
pub writes: java.lang.Long, | ||
/// null | ||
pub write_bytes: java.lang.Long, | ||
/// null | ||
pub queue_length: java.lang.Long, | ||
/// null | ||
pub transfer_time: java.lang.Long, | ||
/// null | ||
pub model_family: java.lang.String, | ||
/// null | ||
pub firmware_version: java.lang.String, | ||
/// null | ||
pub read_error_rate: java.lang.Long, | ||
pub mod smart; | ||
|
||
pub struct DiskData { | ||
/// null | ||
pub name: String, | ||
/// null | ||
pub model: String, | ||
/// null | ||
pub serial: String, | ||
/// Total size in bytes | ||
pub size: u64, | ||
/// null | ||
pub reads: u64, | ||
/// null | ||
pub read_bytes: u64, | ||
/// null | ||
pub writes: u64, | ||
/// null | ||
pub write_bytes: u64, | ||
/// null | ||
pub queue_length: u64, | ||
/// null | ||
pub transfer_time: u64, | ||
/// null | ||
pub model_family: String, | ||
/// null | ||
pub firmware_version: String, | ||
/// null | ||
pub read_error_rate: u64, | ||
} |
34 changes: 18 additions & 16 deletions
34
sandpolis/src/core/layer/sysinfo/hardware/disk/partition.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
/// null | ||
pub identification: java.lang.String, | ||
/// null | ||
pub name: java.lang.String, | ||
/// null | ||
pub description: java.lang.String, | ||
/// The partition's UUID | ||
pub uuid: java.lang.String, | ||
/// The partition's total size in bytes | ||
pub size: java.lang.Long, | ||
/// null | ||
pub major: java.lang.Integer, | ||
/// null | ||
pub minor: java.lang.Integer, | ||
/// The partition's mount point | ||
pub mount: java.lang.String, | ||
pub struct PartitionData { | ||
/// null | ||
pub identification: String, | ||
/// null | ||
pub name: String, | ||
/// null | ||
pub description: String, | ||
/// The partition's UUID | ||
pub uuid: String, | ||
/// The partition's total size in bytes | ||
pub size: u64, | ||
/// null | ||
pub major: u32, | ||
/// null | ||
pub minor: u32, | ||
/// The partition's mount point | ||
pub mount: String, | ||
} |
Oops, something went wrong.