Fix: remove incorrect timestamp multiplication - Prometheus already returns milliseconds

This commit is contained in:
2025-10-03 10:17:31 -03:00
parent 5d4ab1f816
commit fdb6b2b701

View File

@@ -1372,7 +1372,7 @@ class HistoricalAnalysisService:
chart_data = []
for point in data:
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])
chart_data.append({
"x": timestamp,
@@ -1423,7 +1423,7 @@ class HistoricalAnalysisService:
chart_data = []
for point in data:
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
chart_data.append({
"x": timestamp,