Skip to content

Commit

Permalink
fix incorrect uptime on windows (osquery#4240)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAkulov authored and trizt committed May 24, 2019
1 parent 4716733 commit 5bae5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osquery/tables/system/uptime.cpp
Expand Up @@ -46,7 +46,7 @@ long getUptime() {

return sys_info.uptime;
#elif defined(WIN32)
return static_cast<long>(GetTickCount64()) / 1000;
return static_cast<long>(GetTickCount64() / 1000);
#endif

return -1;
Expand Down

0 comments on commit 5bae5bc

Please sign in to comment.