Merge pull request #2194 from GrundleTrundle/windows_timer_sub
Fix for timer overflow when using nimprofiler with 32bit Windows target.
This commit is contained in:
commit
890dcabbde
2 changed files with 3 additions and 3 deletions
|
|
@ -132,7 +132,7 @@ else:
|
|||
proc hook(st: TStackTrace) {.nimcall.} =
|
||||
if interval == 0:
|
||||
hookAux(st, 1)
|
||||
elif getTicks() - t0 > interval:
|
||||
elif int64(t0) == 0 or getTicks() - t0 > interval:
|
||||
hookAux(st, 1)
|
||||
t0 = getTicks()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue