make getMaxGraphDataLength/getMaxServerGraphDataLength methods static

This commit is contained in:
Nick Krecklow
2020-05-08 02:56:39 -05:00
parent 3491c73b89
commit 024e605a41
5 changed files with 19 additions and 16 deletions

View File

@ -151,14 +151,6 @@ class PingController {
}, version.protocolId)
}
}
getMaxServerGraphDataLength () {
return Math.ceil(config.serverGraphDuration / config.rates.pingAll)
}
getMaxGraphDataLength () {
return Math.ceil(config.graphDuration / config.rates.pingAll)
}
}
module.exports = PingController