Skip to content

Commit 8bc7d2a

Browse files
gengjiawendanbev
authored andcommitted
src: fix data type when using uv_get_total_memory()
PR-URL: #26886 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 86517c9 commit 8bc7d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/environment.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void SetIsolateCreateParams(Isolate::CreateParams* params,
169169
if (allocator != nullptr)
170170
params->array_buffer_allocator = allocator;
171171

172-
double total_memory = uv_get_total_memory();
172+
const uint64_t total_memory = uv_get_total_memory();
173173
if (total_memory > 0) {
174174
// V8 defaults to 700MB or 1.4GB on 32 and 64 bit platforms respectively.
175175
// This default is based on browser use-cases. Tell V8 to configure the

0 commit comments

Comments
 (0)