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

fix incorrect uptime on windows #4240

Merged
merged 1 commit into from Apr 5, 2018
Merged

fix incorrect uptime on windows #4240

merged 1 commit into from Apr 5, 2018

Conversation

AlexAkulov
Copy link
Contributor

It was fixed

osquery> select * from uptime;
+------+-------+---------+---------+---------------+
| days | hours | minutes | seconds | total_seconds |
+------+-------+---------+---------+---------------+
| 14   | 6     | 48      | 0       | 1234080       |
+------+-------+---------+---------+---------------+
PS C:\Users\karmazin>  $type = Add-Type -MemberDefinition $signature -Name SystemTime -Namespace GetTickCount64 -PassThru
PS C:\Users\karmazin>
PS C:\Users\karmazin> [System.TimeSpan]::FromMilliseconds($type::GetTickCount64())


Days              : 63
Hours             : 23
Minutes           : 53
Seconds           : 34
Milliseconds      : 843
Ticks             : 55292148430000
TotalDays         : 63,9955421643518
TotalHours        : 1535,89301194444
TotalMinutes      : 92153,5807166667
TotalSeconds      : 5529214,843
TotalMilliseconds : 5529214843

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot facebook-github-bot added the cla signed Automated label: Pull Request author has signed the osquery CLA label Mar 30, 2018
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@muffins
Copy link
Contributor

muffins commented Mar 30, 2018

ok to test

@osquery osquery deleted a comment Apr 3, 2018
@muffins muffins merged commit 8312887 into osquery:master Apr 5, 2018
@muffins muffins added the bug label Apr 30, 2018
@AlexAkulov AlexAkulov deleted the uptime_fix branch March 1, 2019 09:32
trizt pushed a commit to trizt/osquery that referenced this pull request May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cla signed Automated label: Pull Request author has signed the osquery CLA virtual tables Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants