fix(pulse): Increase sparkline history to 24h
This commit is contained in:
parent
477c31db65
commit
3023155fde
1 changed files with 2 additions and 2 deletions
|
|
@ -169,8 +169,8 @@ export class PulseService {
|
||||||
|
|
||||||
await Promise.all(devices.map(async (device) => {
|
await Promise.all(devices.map(async (device) => {
|
||||||
try {
|
try {
|
||||||
// Get 1 hour of history
|
// Get 24 hours of history
|
||||||
const history = await this.getHistory(device.id, 1);
|
const history = await this.getHistory(device.id, 24);
|
||||||
// Sort by timestamp ascending
|
// Sort by timestamp ascending
|
||||||
results[device.id] = history.sort((a, b) =>
|
results[device.id] = history.sort((a, b) =>
|
||||||
a.timestamp.getTime() - b.timestamp.getTime()
|
a.timestamp.getTime() - b.timestamp.getTime()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue