diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c b/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c index a7f58b1cd0c12bac63fdced63a5f39cd5a771572..7cc896cb840be0f0f8de9519462cca26cc1daf59 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c @@ -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); } } diff --git a/source/os/src/osSysinfo.c b/source/os/src/osSysinfo.c index a29b96dd6f2e31b6c21fe5dc3c0600d78cff186a..a5b8af3e6e5dc20f59fdd2cd579d83ed1bf2efd9 100644 --- a/source/os/src/osSysinfo.c +++ b/source/os/src/osSysinfo.c @@ -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;