diff --git a/Cargo.lock b/Cargo.lock index 9297288..77182b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2322,7 +2322,7 @@ dependencies = [ [[package]] name = "peach-stats" -version = "0.3.0" +version = "0.3.1" dependencies = [ "log 0.4.17", "miniserde", @@ -2407,7 +2407,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f77e66f6d6d898cbbd4a09c48fd3507cfc210b7c83055de02a38b5f7a1e6d216" dependencies = [ "libc", - "time 0.3.11", + "time 0.1.44", ] [[package]] diff --git a/peach-stats/Cargo.toml b/peach-stats/Cargo.toml index a715323..0e519f8 100644 --- a/peach-stats/Cargo.toml +++ b/peach-stats/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "peach-stats" -version = "0.3.0" +version = "0.3.1" authors = ["Andrew Reid "] edition = "2018" description = "Query system statistics. Provides a wrapper around the probes and systemstat crates." diff --git a/peach-stats/src/sbot.rs b/peach-stats/src/sbot.rs index ce4de0b..dbcf58b 100644 --- a/peach-stats/src/sbot.rs +++ b/peach-stats/src/sbot.rs @@ -44,8 +44,8 @@ impl SbotStat { pub fn sbot_stats() -> Result { let mut status = SbotStat::default(); - let info_output = Command::new("/usr/bin/systemctl") - .arg("--user") + let info_output = Command::new("sudo") + .arg("systemctl") .arg("show") .arg("go-sbot.service") .arg("--no-page") @@ -66,8 +66,8 @@ pub fn sbot_stats() -> Result { } } - let status_output = Command::new("/usr/bin/systemctl") - .arg("--user") + let status_output = Command::new("sudo") + .arg("systemctl") .arg("status") .arg("go-sbot.service") .output()