-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
get_uptime method does not work #110
Comments
Outch you're right! The error: let content = get_all_data("/proc/mounts").unwrap_or(String::new()); and should be: let content = get_all_data("/proc/uptime").unwrap_or(String::new()); |
@GuillaumeGomez maybe I'll fix it in PR ? |
As you prefer. The fix is written and I'm fixing it and adding tests. But if you want you can change the line, I don't mind (I'll still write the tests however 😉 ). |
So what do you decide? I let you make the PR? :) |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I compiled this code:
and when I try to run it, I get the following output:
Real uptime:
OS: Manjaro Linux
Kernel: 4.14.16-1-MANJARO
The text was updated successfully, but these errors were encountered: