Round in getYforX as well

This commit is contained in:
DarkPhoenix
2019-05-18 11:19:08 +03:00
parent 2f8701b4b2
commit c3f41d68e6
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ class FitDmgVsTimeGraph(Graph):
closestTime = max((t for t in cache if t <= time), default=None)
if closestTime is None:
return 0
return cache[closestTime]
return roundToPrec(cache[closestTime], 6)
def __generateCache(self, fit, maxTime):
cache = self.cache[fit.ID] = {}

View File

@@ -80,7 +80,7 @@ class FitDpsTimeGraph(Graph):
closestTime = max((t for t in cache if t <= time), default=None)
if closestTime is None:
return 0
return cache[closestTime]
return roundToPrec(cache[closestTime], 6)
def __generateCache(self, fit, maxTime):
cache = []