Fix build issue from new version of system, another try at CI.

This commit is contained in:
Herbert Wolverson
2023-02-01 18:56:58 +00:00
parent a392112f7a
commit 175b833d96
2 changed files with 2 additions and 2 deletions

View File

@@ -30,4 +30,4 @@ jobs:
- name: Install tools
run: pushd src/rust; cargo install cargo-outdated; popd
- name: Check for outdated dependencies
run: pushd src/rust; cargo outdated -w --color=always --root-deps-only --exit-code 1 -v
script: cd src/rust; cargo outdated -w --color=always --root-deps-only --exit-code 1

View File

@@ -40,7 +40,7 @@ impl FileLock {
let pid: i32 = contents.parse()?;
let sys = System::new_all();
if let Some(process) = sys.processes().get(&Pid::from(pid)) {
if let Some(process) = sys.processes().get(pid) {
if process.name().contains("lqosd") {
return Ok(true);
}