Skip to content

Commit

Permalink
process_collector: fix compilation on 32-bit targets (#446)
Browse files Browse the repository at this point in the history
The crate didn't compile on 32-bit targets any more due to
libc::sysconf() returning a 32-bit value on those targets.

Signed-off-by: Frank Denis <github@pureftpd.org>
  • Loading branch information
jedisct1 committed Jun 27, 2022
1 parent 935d968 commit 5ca37fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@ lazy_static! {
static ref CLK_TCK: i64 = {
unsafe {
libc::sysconf(libc::_SC_CLK_TCK)
}
}.into()
};

// getconf PAGESIZE
static ref PAGESIZE: i64 = {
unsafe {
libc::sysconf(libc::_SC_PAGESIZE)
}
}.into()
};
}

Expand Down

0 comments on commit 5ca37fe

Please sign in to comment.