diff --git a/dist/game-server.js b/dist/game-server.js index 100fe1d..525071d 100644 --- a/dist/game-server.js +++ b/dist/game-server.js @@ -191,7 +191,7 @@ class ServerHistory { dateHour: dh, playersNum: info.playersNum }); - d.setHours(d.getHours() - graphHistoryHours); + d.setHours(d.getHours() - graphHistoryHours - 1); const minDh = this.yyyymmddhh(d); db.data.population[this.id] = db.data.population[this.id].filter(i => i.dateHour >= minDh); this._stats = []; diff --git a/src/game-server.ts b/src/game-server.ts index aef0bf1..2991dec 100644 --- a/src/game-server.ts +++ b/src/game-server.ts @@ -248,7 +248,7 @@ class ServerHistory { playersNum: info.playersNum }); - d.setHours(d.getHours() - graphHistoryHours); + d.setHours(d.getHours() - graphHistoryHours - 1); const minDh = this.yyyymmddhh(d); db.data.population[this.id] = db.data.population[this.id].filter(i => i.dateHour >= minDh);