Skip to content

Commit a29e0e8

Browse files
authored
Update nix 0.26 -> 0.27 (#755)
* Update nix 0.26 -> 0.27 REF SMPTNG-94 Signed-off-by: Brian L. Troutwine <[email protected]> * overflow sub Signed-off-by: Brian L. Troutwine <[email protected]> --------- Signed-off-by: Brian L. Troutwine <[email protected]>
1 parent dff147a commit a29e0e8

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

Cargo.lock

+4-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lading/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ is_executable = "1.0.1"
2626
metrics = { workspace = true }
2727
metrics-exporter-prometheus = { version = "0.12.1", default-features = false, features = ["http-listener"]}
2828
metrics-util = { version = "0.15" }
29-
nix = { version = "0.26" }
29+
nix = { version = "0.27", default-features = false, features = ["process", "signal"] }
3030
num_cpus = { version = "1.16" }
3131
once_cell = "1.18"
3232
quanta = { version = "0.11", default-features = false, features = [] }

lading/src/observer/linux.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl Sampler {
152152
// Calculate process uptime. We have two pieces of information from
153153
// the kernel: computer uptime and process starttime relative to
154154
// power-on of the computer.
155-
let uptime: u64 = uptime_ticks - stats.starttime; // ticks
155+
let uptime: u64 = uptime_ticks.saturating_sub(stats.starttime); // ticks
156156

157157
// The times that the process and the processes' waited for children
158158
// have been scheduled in kernel and user space. We exclude cstime,

0 commit comments

Comments
 (0)