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

Add delay for usage #498

Merged
merged 2 commits into from
Dec 31, 2022
Merged

Add delay for usage #498

merged 2 commits into from
Dec 31, 2022

Conversation

JakeRoggenbuck
Copy link
Owner

@JakeRoggenbuck JakeRoggenbuck commented Dec 31, 2022

fixes #488

Copy link
Collaborator

@Shuzhengz Shuzhengz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -449,7 +451,7 @@ mod tests {

#[test]
fn test_parse_proc_stat_file() {
let cpu_percent = get_cpu_percent().parse::<f32>().unwrap();
let cpu_percent = get_cpu_percent(None).parse::<f32>().unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh i didnt know u can just use None

@JakeRoggenbuck JakeRoggenbuck merged commit 25fea44 into main Dec 31, 2022
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

Successfully merging this pull request may close these issues.

Acs get usage duration
2 participants