10 Star 4 Fork 14

src-openEuler/vmtop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
display-expand-CPU-display.patch 843 Bytes
一键复制 编辑 原始数据 按行查看 历史
nocjj 提交于 2020-09-27 16:11 . display: expand %CPU display
From 56923111d6218dfd9de68c4d0ae9a3b1ec96ff9a Mon Sep 17 00:00:00 2001
From: nocjj <[email protected]>
Date: Sun, 27 Sep 2020 16:11:45 +0800
Subject: [PATCH] display: expand %CPU display
Now, %CPU's align is 6, and is not enough to display VM
that has vcpus more than 10. So expand align to 8.
---
src/field.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/field.c b/src/field.c
index 6a07fcc..3ae2996 100644
--- a/src/field.c
+++ b/src/field.c
@@ -36,7 +36,7 @@ FID fields[] = {
{"DID", FIELDS_DISPLAY, 5 },
{"VM/task-name", FIELDS_DISPLAY, 14 },
{"PID", FIELDS_DISPLAY, 8 },
- {"%CPU", FIELDS_DISPLAY, 6 },
+ {"%CPU", FIELDS_DISPLAY, 8 },
{"EXThvc", FIELDS_DISPLAY, 10 },
{"EXTwfe", FIELDS_DISPLAY, 10 },
{"EXTwfi", FIELDS_DISPLAY, 10 },
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/vmtop.git
[email protected]:src-openeuler/vmtop.git
src-openeuler
vmtop
vmtop
master

搜索帮助