Skip to content

Commit

Permalink
fixed zero division bug in world
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBarz committed Apr 16, 2015
1 parent 142407f commit bcdf8a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pupil_src/capture/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def get_scale():
#update performace graphs
t = frame.timestamp
dt,ts = t-ts,t
fps_graph.add(1./dt)
if dt != 0:
fps_graph.add(1./dt)
cpu_graph.update()


Expand Down

0 comments on commit bcdf8a4

Please sign in to comment.