-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about list of longs #26
Comments
Hi
|
Thanks, I've already tried that but it seems only the first I do not feel confident yet to write a patch, I'm currently writing my first lines of rust... |
I looked into the code of the sysctl utility and it seems to assume that all numeric types are potentialy arrays: https://github.com/freebsd/freebsd/blob/master/sbin/sysctl/sysctl.c#L1075-L1134 . Maybe sysctl-rs could do something similar. |
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 aLong
type value and the value I get is just one i64 value butsysctl 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
The text was updated successfully, but these errors were encountered: