Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
fixup: Use timer.due on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed May 5, 2017
1 parent 324eeae commit d9a350a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node_report.cc
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,11 @@ static void walkHandle(uv_handle_t* h, void* arg) {
// in a supported level of libuv we should test for it with dlsym
// and use it instead, in case timeout moves in the future.
data << ", timeout in: "
#ifdef _WIN32
<< (handle->timer.due - uv_now(handle->timer.loop)) << " ms";
#else
<< (handle->timer.timeout - uv_now(handle->timer.loop)) << " ms";
#endif
break;
}
case UV_TTY: {
Expand Down

0 comments on commit d9a350a

Please sign in to comment.