Round in getYforX as well
This commit is contained in:
@@ -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] = {}
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user