mirror of
https://github.com/mempool/mempool.git
synced 2026-08-20 13:28:00 +02:00
Switch the 24h chart to 1 min data ticks
This commit is contained in:
parent
eeb0f403a3
commit
e4a9fd06b4
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ class Statistics {
|
|||
public async $list24H(): Promise<OptimizedStatistic[]> {
|
||||
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<any>({ sql: query, timeout: this.queryTimeout });
|
||||
connection.release();
|
||||
return this.mapStatisticToOptimizedStatistic(rows);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue