Skip to content
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

lm_time_t is private #219

Closed
MolotovCherry opened this issue May 26, 2024 · 1 comment
Closed

lm_time_t is private #219

MolotovCherry opened this issue May 26, 2024 · 1 comment

Comments

@MolotovCherry
Copy link
Contributor

lm_process_t::get_start_time() returns lm_time_t, but the type alias is private

type lm_time_t = u64;

While I can use u64 as a replacement, it would be nice to use the original type alias

@rdbo
Copy link
Owner

rdbo commented May 26, 2024

In the new bindings, this is what the Process looks like:

#[derive(Debug, Clone, PartialEq)]
pub struct Process {
    pub pid: Pid,
    pub ppid: Pid,
    pub bits: usize,
    pub start_time: Time,
    pub path: String,
    pub name: String,
}

Everything easily accessible, and no weird stuff going on
Time here is u64 as well

@rdbo rdbo closed this as completed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants