Skip to content

Commit

Permalink
Use wider int to calculate throttle window
Browse files Browse the repository at this point in the history
  • Loading branch information
srajko authored and John Haley committed Feb 28, 2017
1 parent e66d20c commit c018da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate/templates/manual/include/callback_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CallbackWrapper {
}
// throttle if needed
uint64_t now = uv_hrtime();
if(lastCallTime > 0 && now < lastCallTime + throttle * 1000000) {
if(lastCallTime > 0 && now < lastCallTime + throttle * (uint64_t)1000000) {
// throttled
return true;
} else {
Expand Down

0 comments on commit c018da1

Please sign in to comment.