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

feat(doc): Added uptime function for Deno #8540

Closed
wants to merge 1 commit into from

Conversation

MVEMCJSUNPE
Copy link
Contributor

@MVEMCJSUNPE MVEMCJSUNPE commented Nov 29, 2020

Provides uptime function for issue #3802 . I haven't added tests yet, because I'm not sure how to test uptime. For example, the test loadavgSuccess merely checks whether an array of 3 is given by Deno.loadavg; it doesn't actually check the loadtimes.

As it turns out in issue #8357 , heim is NOT needed to implement uptime. sysinfo already provides a function that can give the uptime called boottime, as I found in this issue.

Note: this is still a WIP, even though it should hopefully be mostly done.

@CLAassistant
Copy link

CLAassistant commented Nov 29, 2020

CLA assistant check
All committers have signed the CLA.

@MVEMCJSUNPE
Copy link
Contributor Author

I'm closing because for whatever reason, boottime is only implemented for non-Windows systems. While there is a pending pull request on sys-info that will hopefully resolve this issue (FillZpp/sys-info-rs#48), I don't see much point in keeping this PR open.

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.

None yet

3 participants