Connection status charts now use different color to distinguish statistics of current connection from past ones
This commit is contained in:
@@ -32,7 +32,16 @@ export class Records {
|
||||
*/
|
||||
update(newData) {
|
||||
this.data.shift();
|
||||
this.data.push(newData);
|
||||
this.data.push({ data: newData, class: "" });
|
||||
}
|
||||
|
||||
/**
|
||||
* Set all existing data as expired
|
||||
*/
|
||||
expire() {
|
||||
for (let i = 0; i < this.data.length; i++) {
|
||||
this.data[i].class = "expired";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user