代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/procps-ng 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 7e24816538b777fe0b3f709df3b9c1824681461c Mon Sep 17 00:00:00 2001
From: Ingo Saitz <ingo@hannover.ccc.de>
Date: Fri, 6 Jan 2023 13:30:39 +1100
Subject: [PATCH] vmstat: Update memory statistics
vmstat <n> would update most fields, but the memory statistics
were only fetched the first time.
References:
https://bugs.debian.org/1027963
Signed-off-by: Craig Small <csmall@dropbear.xyz>
---
NEWS | 1 +
src/vmstat.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/NEWS b/NEWS
index 2d13978..fade38f 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ procps-ng-NEXT
---------------
* docs: Don't install English manpages twice
* skill: Match on -p again Debian #1025915
+ * vmstat: Referesh memory statistics Debian #1027963
procps-ng-4.0.2
---------------
* library revision - 0:1:0
diff --git a/src/vmstat.c b/src/vmstat.c
index 8610983..acb7b80 100644
--- a/src/vmstat.c
+++ b/src/vmstat.c
@@ -468,6 +468,9 @@ static void new_format(void)
pswpin[tog] = VMSTAT_GET(vm_info, VMSTAT_PSWPIN, ul_int);
pswpout[tog] = VMSTAT_GET(vm_info, VMSTAT_PSWPOUT, ul_int);
+ if (!(mem_stack = procps_meminfo_select(mem_info, Mem_items, MAX_mem)))
+ xerrx(EXIT_FAILURE, _("Unable to select memory information"));
+
if (t_option) {
(void) time( &the_time );
tm_ptr = localtime( &the_time );
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。