mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore(deps): bump breaking deps (#14570)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -37,7 +37,7 @@ thiserror.workspace = true
|
||||
tempfile = { workspace = true, optional = true }
|
||||
derive_more.workspace = true
|
||||
rustc-hash = { workspace = true, optional = true }
|
||||
sysinfo = { version = "0.32", default-features = false, features = ["system"] }
|
||||
sysinfo = { version = "0.33", default-features = false, features = ["system"] }
|
||||
parking_lot = { workspace = true, optional = true }
|
||||
|
||||
# arbitrary utils
|
||||
|
||||
@ -112,7 +112,7 @@ impl ProcessUID {
|
||||
system.refresh_processes_specifics(
|
||||
sysinfo::ProcessesToUpdate::Some(&[pid2]),
|
||||
true,
|
||||
ProcessRefreshKind::new(),
|
||||
ProcessRefreshKind::nothing(),
|
||||
);
|
||||
system.process(pid2).map(|process| Self { pid, start_time: process.start_time() })
|
||||
}
|
||||
@ -141,9 +141,11 @@ impl ProcessUID {
|
||||
|
||||
/// Whether a process with this `pid` and `start_time` exists.
|
||||
fn is_active(&self) -> bool {
|
||||
System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()))
|
||||
.process(self.pid.into())
|
||||
.is_some_and(|p| p.start_time() == self.start_time)
|
||||
System::new_with_specifics(
|
||||
RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()),
|
||||
)
|
||||
.process(self.pid.into())
|
||||
.is_some_and(|p| p.start_time() == self.start_time)
|
||||
}
|
||||
|
||||
/// Writes `pid` and `start_time` to a file.
|
||||
|
||||
Reference in New Issue
Block a user