提交 9511af24 编写于 作者: K kailixu

chore: time unit of os uptime

上级 e566c051
......@@ -43,7 +43,7 @@ static void *dmStatusThreadFp(void *param) {
}
if ((upTimeCount = (++upTimeCount & 63)) == 0) {
upTime = (taosGetOsUptime() - tsDndStartOsUptime) * 1000;
upTime = taosGetOsUptime() - tsDndStartOsUptime;
tsDndUpTime = TMAX(tsDndUpTime, upTime);
}
}
......
......@@ -967,7 +967,7 @@ int64_t taosGetOsUptime() {
#else
struct sysinfo info;
if (0 == sysinfo(&info)) {
return info.uptime;
return (int64_t)info.uptime * 1000;
};
#endif
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册