代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/procinfo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
diff -urN procinfo-18.save/procinfo.c procinfo-18/procinfo.c
--- procinfo-18.save/procinfo.c 2001-02-25 06:29:16.000000000 -0500
+++ procinfo-18/procinfo.c 2003-07-29 22:10:07.000000000 -0400
@@ -249,6 +249,9 @@
new.cpu_nice = VAL;
new.cpu_sys = VAL;
new.cpu_idle = VAL;
+ new.cpu_iowait = VAL;
+ new.cpu_irq = VAL;
+ new.cpu_softirq = VAL;
/*
* according to bug #1959, sometimes the cpu_idle
* seems to go backwards(!) on SMP boxes. This may
@@ -373,7 +376,9 @@
putchar ('\n');
printf ("system: %s %s",
- hms (bDIFF (cpu_sys)), perc (bDIFF (cpu_sys), elapsed, nr_cpus));
+ hms (bDIFF (cpu_sys) + bDIFF (cpu_irq) + bDIFF (cpu_softirq)),
+ perc (bDIFF (cpu_sys) + bDIFF (cpu_irq) + bDIFF (cpu_softirq),
+ elapsed, nr_cpus));
printf (" swap in :%9lu", bDIFF (swin));
if (new.disk_r[2])
printf (" disk 3: %8lur%8luw\n", bDIFF (disk_r[2]),
@@ -384,7 +389,8 @@
putchar ('\n');
printf ("idle : %s %s",
- hms (bDIFF (cpu_idle)), perc (bDIFF (cpu_idle), elapsed, nr_cpus));
+ hms (bDIFF (cpu_idle) + bDIFF (cpu_iowait)),
+ perc (bDIFF (cpu_idle) + bDIFF (cpu_iowait), elapsed, nr_cpus));
printf (" swap out:%9lu", bDIFF (swout));
if (new.disk_r[3])
printf (" disk 4: %8lur%8luw\n", bDIFF (disk_r[3]),
diff -urN procinfo-18.save/procinfo.h procinfo-18/procinfo.h
--- procinfo-18.save/procinfo.h 2001-02-24 18:30:45.000000000 -0500
+++ procinfo-18/procinfo.h 2003-07-29 22:10:09.000000000 -0400
@@ -82,6 +82,7 @@
long m_to, m_us, m_fr, m_sh, m_bu, m_ca;
long s_to, s_us, s_fr;
unsigned long cpu_user, cpu_nice, cpu_sys, cpu_idle;
+ unsigned long cpu_iowait, cpu_irq, cpu_softirq;
unsigned long disk[5];
unsigned long disk_r[5];
unsigned long disk_w[5];
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。