Modify js_sys_module issue bug

Signed-off-by: xllify <lixinlong18@huawei.com>

 Please enter the commit message for your changes. Lines starting
 with '#' will be ignored, and an empty message aborts the commit.

 On branch master
 Your branch is up to date with 'origin/master'.

 Please enter the commit message for your changes. Lines starting
 with '#' will be ignored, and an empty message aborts the commit.

 Date:      Thu Mar 24 17:03:50 2022 +0800

 On branch master
 Your branch and 'origin/master' have diverged,

 Please enter the commit message for your changes. Lines starting
 with '#' will be ignored, and an empty message aborts the commit.

 Date:      Thu Mar 24 17:03:50 2022 +0800

 On branch master

 Please enter the commit message for your changes. Lines starting
 with '#' will be ignored, and an empty message aborts the commit.

 Date:      Thu Mar 24 17:03:50 2022 +0800

 On branch master
This commit is contained in:
xllify
2022-03-24 17:03:50 +08:00
parent c1d01cea0b
commit 278585c2aa
8 changed files with 306 additions and 32 deletions
+2 -2
View File
@@ -421,7 +421,7 @@ namespace OHOS::Js_sys_module::Process {
return result;
}
int Process::ConvertTime(time_t tvsec, long tvnsec) const
int Process::ConvertTime(time_t tvsec, int64_t tvnsec) const
{
return int(tvsec * 1000) + int(tvnsec / 1000000); // 98999:Only converttime numbers is 1000 and 1000000.
}
@@ -574,4 +574,4 @@ namespace OHOS::Js_sys_module::Process {
}
eventMap.clear();
}
} // namespace
} // namespace OHOS::Js_sys_module::Process