build(deps): bump sysinfo from 0.27.8 to 0.30.12 (#4795)
* build(deps): bump sysinfo from 0.27.8 to 0.30.12 Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.27.8 to 0.30.12. - [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md) - [Commits](https://github.com/GuillaumeGomez/sysinfo/commits) --- updated-dependencies: - dependency-name: sysinfo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Migrade to latest sysinfo in mixnode legacy hardware * Use workspace version --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Häggblad <jon.haggblad@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ use axum::extract::Query;
|
||||
use cupid::TopologyType;
|
||||
use nym_http_api_common::{FormattedResponse, OutputParams};
|
||||
use serde::Serialize;
|
||||
use sysinfo::{System, SystemExt};
|
||||
use sysinfo::System;
|
||||
|
||||
#[derive(Serialize, Debug)]
|
||||
pub struct Hardware {
|
||||
@@ -43,7 +43,7 @@ fn hardware_info() -> Option<Hardware> {
|
||||
/// Sysinfo gives back basic stuff like number of CPU cores and available memory. If available, this includes the hardware encryption
|
||||
/// extensions report
|
||||
fn hardware_from_sysinfo(crypto_hardware: Option<CryptoHardware>) -> Option<Hardware> {
|
||||
if System::IS_SUPPORTED {
|
||||
if sysinfo::IS_SUPPORTED_SYSTEM {
|
||||
let mut system = System::new_all();
|
||||
system.refresh_all();
|
||||
let ram = format!("{}KB", system.total_memory());
|
||||
|
||||
Reference in New Issue
Block a user