store pingHistory as player count directly
This commit is contained in:
@ -111,12 +111,12 @@ export class App {
|
||||
|
||||
serverRegistration.initServerStatus(payload)
|
||||
|
||||
// pingHistory is only defined when the backend has previous ping data
|
||||
// undefined pingHistory means this is a placeholder ping generated by the backend
|
||||
if (typeof payload.pingHistory !== 'undefined') {
|
||||
// playerCountHistory is only defined when the backend has previous ping data
|
||||
// undefined playerCountHistory means this is a placeholder ping generated by the backend
|
||||
if (typeof payload.playerCountHistory !== 'undefined') {
|
||||
// Push the historical data into the graph
|
||||
// This will trim and format the data so it is ready for the graph to render once init
|
||||
serverRegistration.addGraphPoints(payload.pingHistory, timestampPoints)
|
||||
serverRegistration.addGraphPoints(payload.playerCountHistory, timestampPoints)
|
||||
}
|
||||
|
||||
// Create the plot instance internally with the restructured and cleaned data
|
||||
|
Reference in New Issue
Block a user