Fix: remove incorrect timestamp multiplication - Prometheus already returns milliseconds
This commit is contained in:
@@ -1372,7 +1372,7 @@ class HistoricalAnalysisService:
|
|||||||
chart_data = []
|
chart_data = []
|
||||||
for point in data:
|
for point in data:
|
||||||
if len(point) >= 2 and point[1] != 'NaN':
|
if len(point) >= 2 and point[1] != 'NaN':
|
||||||
timestamp = int(point[0] * 1000) # Convert to milliseconds
|
timestamp = int(point[0]) # Already in milliseconds
|
||||||
value = self._safe_float(point[1])
|
value = self._safe_float(point[1])
|
||||||
chart_data.append({
|
chart_data.append({
|
||||||
"x": timestamp,
|
"x": timestamp,
|
||||||
@@ -1423,7 +1423,7 @@ class HistoricalAnalysisService:
|
|||||||
chart_data = []
|
chart_data = []
|
||||||
for point in data:
|
for point in data:
|
||||||
if len(point) >= 2 and point[1] != 'NaN':
|
if len(point) >= 2 and point[1] != 'NaN':
|
||||||
timestamp = int(point[0] * 1000) # Convert to milliseconds
|
timestamp = int(point[0]) # Already in milliseconds
|
||||||
value = self._safe_float(point[1]) / (1024 * 1024) # Convert to MB
|
value = self._safe_float(point[1]) / (1024 * 1024) # Convert to MB
|
||||||
chart_data.append({
|
chart_data.append({
|
||||||
"x": timestamp,
|
"x": timestamp,
|
||||||
|
|||||||
Reference in New Issue
Block a user