fix: Fixed an error that occurred when the box profit changes were small in live report generation
This commit is contained in:
@@ -663,7 +663,7 @@ class LiveReportGenerator:
|
|||||||
length = len(profits)
|
length = len(profits)
|
||||||
indexs = list(range(0, length))
|
indexs = list(range(0, length))
|
||||||
|
|
||||||
abs_max = int(max(max(profits), abs(min(profits))))
|
abs_max = math.ceil(max(max(profits), abs(min(profits))))
|
||||||
start = -abs_max - (-abs_max % 10)
|
start = -abs_max - (-abs_max % 10)
|
||||||
end = abs_max + (-abs_max % 10)
|
end = abs_max + (-abs_max % 10)
|
||||||
step = int((end - start) / 10)
|
step = int((end - start) / 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user