diff --git a/backend/src/api/statistics.ts b/backend/src/api/statistics.ts index d1784f937..b10c216a5 100644 --- a/backend/src/api/statistics.ts +++ b/backend/src/api/statistics.ts @@ -394,7 +394,7 @@ class Statistics { public async $list24H(): Promise { try { const connection = await DB.pool.getConnection(); - const query = this.getQueryForDaysAvg(120, '1 DAY'); // 2m interval + const query = `SELECT *, UNIX_TIMESTAMP(added) as added FROM statistics ORDER BY id DESC LIMIT 1440`; const [rows] = await connection.query({ sql: query, timeout: this.queryTimeout }); connection.release(); return this.mapStatisticToOptimizedStatistic(rows);