use config.graphDuration when querying database, not LIMIT

This commit is contained in:
Nick Krecklow
2020-05-08 02:06:39 -05:00
parent 5f2c62c23a
commit 2f1c9c1dce
2 changed files with 11 additions and 6 deletions

View File

@ -24,7 +24,7 @@ class App {
// Setup database instance
this.database.ensureIndexes()
this.database.loadGraphPoints(this.pingController.getMaxGraphDataLength(), () => {
this.database.loadGraphPoints(config.graphDuration, () => {
this.database.loadRecords(callback)
})
}