nv2a-trace icon indicating copy to clipboard operation
nv2a-trace copied to clipboard

Division by zero when `duration` is 0

Open JayFoxRox opened this issue 6 years ago • 0 comments

The following line can trigger a division by zero:

 print("Recorded %d flip stalls and %d PB commands (%.2f commands / second)" % (flipStallCount, commandCount, commandCount / duration))

This will likely happen if hooking into the PB failed and the timer resolution is too low.

JayFoxRox avatar Jul 19 '18 16:07 JayFoxRox