replace ServerRegistration#unfurlSrv to DNSResolver class

This commit is contained in:
Nick Krecklow
2020-05-14 20:30:40 -05:00
parent a308eb35fb
commit 9a38160019
8 changed files with 82 additions and 75 deletions

View File

@ -7,7 +7,7 @@ class TimeTracker {
}
newTimestamp () {
const timestamp = new Date().getTime()
const timestamp = TimeTracker.getEpochMillis()
this._points.push(timestamp)
@ -22,6 +22,10 @@ class TimeTracker {
return this._points
}
static getEpochMillis () {
return new Date().getTime()
}
static getMaxServerGraphDataLength () {
return Math.ceil(config.serverGraphDuration / config.rates.pingAll)
}