diff --git a/assets/js/servers.js b/assets/js/servers.js
index a50c76d..fba696a 100644
--- a/assets/js/servers.js
+++ b/assets/js/servers.js
@@ -80,9 +80,9 @@ export class ServerRegistration {
// eslint-disable-next-line new-cap
this._plotInstance = new uPlot({
plugins: [
- uPlotTooltipPlugin((pos, point) => {
+ uPlotTooltipPlugin((pos, id, plot) => {
if (pos) {
- const text = formatNumber(point.y) + ' Players
' + formatTimestamp(point.x * 1000)
+ const text = formatNumber(plot.data[1][id]) + ' Players
' + formatTimestamp(plot.data[0][id] * 1000)
this._app.tooltip.set(pos.left, pos.top, 10, 10, text)
} else {
diff --git a/assets/js/tooltip.js b/assets/js/tooltip.js
index a4fc78f..431ad9e 100644
--- a/assets/js/tooltip.js
+++ b/assets/js/tooltip.js
@@ -20,11 +20,7 @@ export function uPlotTooltipPlugin (onHover) {
onHover({
left: bounds.left + left + window.pageXOffset,
top: bounds.top + top + window.pageYOffset
- }, {
- idx,
- x: u.data[0][idx],
- y: u.data[1][idx]
- })
+ }, idx, u)
}
}
}
diff --git a/config.json b/config.json
index 157ed92..24465b0 100644
--- a/config.json
+++ b/config.json
@@ -10,7 +10,7 @@
"connectTimeout": 2500
},
"performance": {
- "skipUnfurlSrv": false,
+ "skipUnfurlSrv": true,
"unfurlSrvCacheTtl": 120000
},
"logToDatabase": true,