Render charts from full SQLite history

This commit is contained in:
2026-04-01 23:52:54 +03:00
parent d21d9d191b
commit bcb7fe5fe9

View File

@@ -482,7 +482,7 @@ func (h *handler) handleMetricsChartSVG(w http.ResponseWriter, r *http.Request)
}
func (h *handler) chartDataFromDB(path string) ([][]float64, []string, []string, string, *float64, *float64, bool) {
samples, err := h.metricsDB.LoadRecent(metricsChartWindow)
samples, err := h.metricsDB.LoadAll()
if err != nil || len(samples) == 0 {
return nil, nil, nil, "", nil, nil, false
}