提交 4fc1369a authored 作者: William King's avatar William King

Minor typo. User is being passed into this fuction as a long pointer, not a long.

上级 49303fda
......@@ -137,7 +137,7 @@ static int read_cpu_stats(switch_profile_timer_t *p,
/* test each of the known formats starting from the bigger one */
elements = sscanf(cpustr, CPU_INFO_FORMAT_3, user, nice, system, idle, iowait, irq, softirq, steal, &guest);
if (elements == CPU_ELEMENTS_3) {
user += guest; /* guest operating system's run in user space */
*user += guest; /* guest operating system's run in user space */
return 0;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论