Skip to content

Commit 5ca37fe

Browse files
authored
process_collector: fix compilation on 32-bit targets (#446)
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 <[email protected]>
1 parent 935d968 commit 5ca37fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/process_collector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ lazy_static! {
190190
static ref CLK_TCK: i64 = {
191191
unsafe {
192192
libc::sysconf(libc::_SC_CLK_TCK)
193-
}
193+
}.into()
194194
};
195195

196196
// getconf PAGESIZE
197197
static ref PAGESIZE: i64 = {
198198
unsafe {
199199
libc::sysconf(libc::_SC_PAGESIZE)
200-
}
200+
}.into()
201201
};
202202
}
203203

0 commit comments

Comments
 (0)