mirror of https://github.com/nodejs/node.git
deps: upgrade libuv to be09be7
parent
fc4e12b8f1
commit
4fbe7a5fab
|
@ -261,7 +261,7 @@ uv_err_t uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
|
|||
return uv__new_sys_error(ENOMEM);
|
||||
}
|
||||
|
||||
if (sysctlbyname("kern.cp_times", &cp_times, &size, NULL, 0) < 0) {
|
||||
if (sysctlbyname("kern.cp_times", cp_times, &size, NULL, 0) < 0) {
|
||||
free(cp_times);
|
||||
free(*cpu_infos);
|
||||
return uv__new_sys_error(errno);
|
||||
|
|
|
@ -47,7 +47,7 @@ TEST_IMPL(hrtime) {
|
|||
/* Check that the difference between the two hrtime values is somewhat in */
|
||||
/* the range we expect it to be. */
|
||||
ASSERT(diff > (uint64_t) 25 * NANOSEC / MILLISEC);
|
||||
ASSERT(diff < (uint64_t) 60 * NANOSEC / MILLISEC);
|
||||
ASSERT(diff < (uint64_t) 80 * NANOSEC / MILLISEC);
|
||||
--i;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue