src: fix data type when using uv_get_total_memory() · nodejs/node@8bc7d2a (original) (raw)

Original file line number Diff line number Diff line change
@@ -169,7 +169,7 @@ void SetIsolateCreateParams(Isolate::CreateParams* params,
169 169 if (allocator != nullptr)
170 170 params->array_buffer_allocator = allocator;
171 171
172 -double total_memory = uv_get_total_memory();
172 +const uint64_t total_memory = uv_get_total_memory();
173 173 if (total_memory > 0) {
174 174 // V8 defaults to 700MB or 1.4GB on 32 and 64 bit platforms respectively.
175 175 // This default is based on browser use-cases. Tell V8 to configure the