diff --git a/Cargo.lock b/Cargo.lock index c15fa14..2ce13f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1833,9 +1833,9 @@ checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" [[package]] name = "sysinfo" -version = "0.29.11" +version = "0.30.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd727fc423c2060f6c92d9534cef765c65a6ed3f428a03d7def74a8c4348e666" +checksum = "87341a165d73787554941cd5ef55ad728011566fe714e987d1b976c15dbc3a83" dependencies = [ "cfg-if", "core-foundation-sys", @@ -1843,7 +1843,7 @@ dependencies = [ "ntapi", "once_cell", "rayon", - "winapi", + "windows", ] [[package]] @@ -2290,6 +2290,16 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" +dependencies = [ + "windows-core", + "windows-targets 0.52.5", +] + [[package]] name = "windows-core" version = "0.52.0" diff --git a/hdrop-server/Cargo.toml b/hdrop-server/Cargo.toml index 64c1c93..b5090b0 100644 --- a/hdrop-server/Cargo.toml +++ b/hdrop-server/Cargo.toml @@ -18,6 +18,7 @@ s3 = { version = "0.37", package = "zitane-s3-async" } metrics-exporter-prometheus = "0.14" tracing-subscriber = { version = "0.3", features = ["env-filter"] } tracing = "0.1.40" +sysinfo = "0.30" chrono.workspace = true uuid.workspace = true @@ -28,4 +29,3 @@ metrics.workspace = true hdrop-db.workspace = true hdrop-shared.workspace = true -sysinfo = "0.29.3" diff --git a/hdrop-server/src/core/metrics/monitoring.rs b/hdrop-server/src/core/metrics/monitoring.rs index 6cdc50b..66f7f2e 100644 --- a/hdrop-server/src/core/metrics/monitoring.rs +++ b/hdrop-server/src/core/metrics/monitoring.rs @@ -1,4 +1,4 @@ -use sysinfo::{CpuExt, System, SystemExt}; +use sysinfo::System; /// Agnostic status struct for any limited resource. pub struct Status {