Hi,
First of all, thanks for this library. I'm very new to Rust so this might be a stupid question. I'm trying to read the "kern.cp_time" and "kern.cp_times" Ctl's on FreeBSD. This should be a list of long integers (user, nice, sys, intr, idle). sysctl-rs says it's a Long type value and the value I get is just one i64 value but sysctl kern.cp_time gives me the list of all 5 numbers. Could you point me the way on how to read all 5?
Thanks, Rudolph
Hi,
First of all, thanks for this library. I'm very new to Rust so this might be a stupid question. I'm trying to read the
"kern.cp_time"and"kern.cp_times"Ctl's on FreeBSD. This should be a list of long integers (user, nice, sys, intr, idle).sysctl-rssays it's aLongtype value and the value I get is just one i64 value butsysctl kern.cp_timegives me the list of all 5 numbers. Could you point me the way on how to read all 5?Thanks, Rudolph