Skip to content

Commit

Permalink
Upgrade some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElectronWill committed Apr 21, 2023
1 parent 84d2cec commit 01b3def
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 40 deletions.
80 changes: 50 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ homepage = "https://hubblo-org.github.io/scaphandre-documentation"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
loggerv = "0.7.2"
loggerv = "0.7"
log = "0.4"
clap = { version = "4.2", features = ["cargo", "derive"] }
regex = "1.7.0"
regex = "1.7"
riemann_client = { version = "0.9.0", optional = true }
hostname = "0.3.1"
protobuf = "2.28.0"
Expand All @@ -24,18 +24,17 @@ serde_json = { version = "1.0", optional = true }
ordered-float = "2.0"
warp10 = { version = "2.0.0", optional = true }
rand = { version = "0.7.3" }
time = "0.3.20"
colored = "2.0.0"
chrono = "0.4.19"
time = "0.3"
colored = "2.0"
chrono = "0.4"
docker-sync = { version = "0.1.2", optional = true }
k8s-sync = { version = "0.2.3", optional = true }
hyper = { version = "0.14", features = ["full"], optional = true }
tokio = { version = "1.26.0", features = ["full"], optional = true}
sysinfo = { version = "0.28.3"}

[target.'cfg(target_os="linux")'.dependencies]
#procfs = "0.13.2"
procfs = { version = "0.12.0" }
procfs = { version = "0.15.0" }

[target.'cfg(target_os="windows")'.dependencies]
windows = { version = "0.27.0", features = ["alloc","Win32_Storage_FileSystem","Win32_Foundation","Win32_Security","Win32_System_IO","Win32_System_Ioctl"]}
Expand Down
6 changes: 3 additions & 3 deletions src/sensors/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ impl IProcess {
pub fn cgroups() {}
}

pub fn page_size() -> Result<i64, String> {
pub fn page_size() -> Result<u64, String> {
let res;
#[cfg(target_os = "linux")]
{
res = Ok(procfs::page_size().unwrap())
res = Ok(procfs::page_size())
}
#[cfg(target_os = "windows")]
{
res = Ok(4096)
res = Ok(4096u64)
}
res
}
Expand Down

0 comments on commit 01b3def

Please sign in to comment.