Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-05-28 16:11:46 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-05-28 16:11:46 +0300
commitbaf8c94b2e643e41a4319f0ca55e9c66b64970b0 (patch)
treed68c4b517214271ce83479255391bb191ec79a38 /web/html
parentadcfccbe4550ebca477e8fd9a6ef00dd10002809 (diff)
new - vCPUs
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/index.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index cda44a8e..243a26bf 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -45,7 +45,12 @@
<a-progress type="dashboard" status="normal"
:stroke-color="status.cpu.color"
:percent="status.cpu.percent"></a-progress>
- <div><b>CPU:</b> [[ cpuCoreFormat(status.cpuCores) ]]</div>
+ <div><b>CPU:</b> [[ cpuCoreFormat(status.cpuCores) ]] <a-tooltip>
+ <a-icon type="info-circle"></a-icon>
+ <template slot="title">
+ <div><b>Logical Processors(vCPUs):</b> [[ (status.logicalPro) ]]</div>
+ </template>
+ </a-tooltip></div>
<div><b>Speed:</b> [[ cpuSpeedFormat(status.cpuSpeedMhz) ]]</div>
</a-col>
<a-col :span="12" style="text-align: center">
@@ -367,6 +372,7 @@
constructor(data) {
this.cpu = new CurTotal(0, 0);
this.cpuCores = 0;
+ this.logicalPro = 0;
this.cpuSpeedMhz = 0;
this.disk = new CurTotal(0, 0);
this.loads = [0, 0, 0];
@@ -387,6 +393,7 @@
}
this.cpu = new CurTotal(data.cpu, 100);
this.cpuCores = data.cpuCores;
+ this.logicalPro = data.logicalPro;
this.cpuSpeedMhz = data.cpuSpeedMhz;
this.disk = new CurTotal(data.disk.current, data.disk.total);
this.loads = data.loads.map(load => toFixed(load, 2));