过滤资源监控中的虚拟磁盘挂载点
This commit is contained in:
@@ -281,7 +281,9 @@
|
||||
<div slot="header" class="workspace-header">
|
||||
<div>
|
||||
<h3>磁盘挂载点</h3>
|
||||
<p>按使用率排序展示常用挂载点,方便快速发现哪个分区快满了。</p>
|
||||
<p>
|
||||
{% raw %}{{ diskMountBrief }}{% endraw %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="disk.items || []" size="mini" style="width: 100%">
|
||||
@@ -403,6 +405,13 @@
|
||||
const sourceText = browser.launch_source ? `source=${browser.launch_source}` : 'source=-';
|
||||
return `${loopText} · ${pidText} · ${sourceText}`;
|
||||
},
|
||||
diskMountBrief() {
|
||||
const hiddenCount = Number(this.disk.hidden_virtual_mount_count || 0);
|
||||
if (hiddenCount > 0) {
|
||||
return `按使用率排序展示常用挂载点,已隐藏 ${hiddenCount} 个 snap / loop / squashfs 等虚拟挂载。`;
|
||||
}
|
||||
return '按使用率排序展示常用挂载点,方便快速发现哪个分区快满了。';
|
||||
},
|
||||
alertItems() {
|
||||
const items = [];
|
||||
const cpuUsage = this.normalizePercent(this.cpu.usage_percent);
|
||||
|
||||
Reference in New Issue
Block a user