mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-07-22 05:41:43 -04:00
fix graph span2
This commit is contained in:
2
dist/game-server.js
vendored
2
dist/game-server.js
vendored
@@ -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 = [];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user