123 Star 1 Fork 9

src-openEuler/procinfo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
procinfo-18-idle-overflow.patch 738 Bytes
一键复制 编辑 原始数据 按行查看 历史
Grooooot 提交于 2020-02-19 10:01 . init the package
--- procinfo-18/routines.c.orig 2011-02-11 03:32:17.000000000 +0530
+++ procinfo-18/routines.c 2011-02-11 03:35:01.000000000 +0530
@@ -392,13 +392,13 @@
t *= (100 / HZ);
d = (unsigned int) (t / 8640000);
- t -= (unsigned long) (d * 8640000);
+ t -= ((unsigned long) d * 8640000);
h = (unsigned int) (t / 360000);
- t -= (unsigned long) (h * 360000);
+ t -= ((unsigned long) h * 360000);
m = (unsigned int) (t / 6000);
- t -= (unsigned long) (m * 6000);
+ t -= ((unsigned long) m * 6000);
s = (unsigned int) (t / 100);
- t -= (unsigned long) (s * 100);
+ t -= ((unsigned long) s * 100);
if (d > 0)
sprintf (buf, "%3ud %2u:%02u:%02u.%02u", d, h, m, s, (unsigned int) t);
else
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/procinfo.git
git@gitee.com:src-openeuler/procinfo.git
src-openeuler
procinfo
procinfo
master

搜索帮助