mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-04-06 21:34:40 +09:00
.
This commit is contained in:
@@ -34,7 +34,7 @@ export class InstancePlugin extends BaseInstancePlugin {
|
|||||||
|
|
||||||
setInterval() {
|
setInterval() {
|
||||||
if (!this.updateInterval) {
|
if (!this.updateInterval) {
|
||||||
this.updateInterval = setInterval(this.updateUps.bind(this), this.instance.config.get("exp_server_ups.update_interval") as number);
|
this.updateInterval = setInterval(this.updateUps.bind(this), (this.instance.config.get("exp_server_ups.update_interval") as number));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ export class InstancePlugin extends BaseInstancePlugin {
|
|||||||
if (collected > 0) {
|
if (collected > 0) {
|
||||||
const minTick = this.gameTimes[0];
|
const minTick = this.gameTimes[0];
|
||||||
const maxTick = this.gameTimes[collected];
|
const maxTick = this.gameTimes[collected];
|
||||||
ups = (maxTick - minTick) / (collected * (this.instance.config.get("exp_server_ups.update_interval") as number / 1000));
|
ups = (maxTick - minTick) / (collected * ((this.instance.config.get("exp_server_ups.update_interval") as number) / 1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user