Skip to content
Permalink
Browse files

Catch div by 0 error

  • Loading branch information...
Ebag333 committed Jun 26, 2017
1 parent 0414a28 commit 4b4422edd5ba1f369ed04c64d2f77222c4b9f97f
Showing with 2 additions and 1 deletion.
  1. +2 −1 eos/saveddata/fit.py
@@ -1192,7 +1192,8 @@ def simulateCap(self):
if module_list['ReactivationDelay']:
total_run_time += module_list['ReactivationDelay']

cap_per_second += total_amount / (total_run_time / 1000)
if total_run_time > 0 and total_amount > 0:
cap_per_second += total_amount / (total_run_time / 1000)

self.__capUsed = cap_per_second

0 comments on commit 4b4422e

Please sign in to comment.
You can’t perform that action at this time.