upd: 修改在线人数统计报表为10分钟一次共10小时

This commit is contained in:
小林 2022-02-26 18:40:40 +08:00
parent 82efd4681e
commit 58aef60282

View File

@ -291,7 +291,7 @@
<Panel v-if="isShowPlayersChart">
<template #title>面板端在线人数</template>
<template #default>
<p>5分钟统计间隔总5小时的内存历史使用率</p>
<p>10分钟统计间隔总10小时的在线人数趋势</p>
<div class="echart-wrapper">
<div id="echart-wrapper-players" style="width: 100%; height: 200px"></div>
</div>
@ -819,7 +819,7 @@ export default {
const MAX_TIME = this.instanceInfo.info.playersChart.length - 1;
const source = this.instanceInfo.info.playersChart;
for (const key in source) {
source[key]["time"] = `${(MAX_TIME - key) * 5} 分前`;
source[key]["time"] = `${(MAX_TIME - key) * 10} 分前`;
}
this.playersChart.setOption({
dataset: {