feat(statistics): record rolling account traffic

This commit is contained in:
Sucukdeluxe
2026-08-21 08:25:32 +02:00
parent 54bcd82cb6
commit 7121a334d2
5 changed files with 415 additions and 7 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const session: SessionState = {
reconnectReason: "", paused: false, running: true, updatedAt: 0
};
const history: HistoryEntry[] = [{ id: "h1" } as unknown as HistoryEntry];
const statistics: StatisticsLedger = { version: 1, startedAt: 1, days: [] };
const statistics: StatisticsLedger = { version: 2, startedAt: 1, days: [], minutes: [] };
const baseInput = { appVersion: "1.7.183", exportedAt: "2026-06-07T00:00:00Z", session, history, statistics };