From 19cba3ff859e59260d87c8f83c0725bfd1bb03a0 Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Fri, 13 May 2016 10:33:56 -0700 Subject: [PATCH] Use doubles to represent memory size in bytes --- atom/common/native_mate_converters/blink_converter.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/atom/common/native_mate_converters/blink_converter.cc b/atom/common/native_mate_converters/blink_converter.cc index 4571298fbcb1..ddee3a1351bf 100644 --- a/atom/common/native_mate_converters/blink_converter.cc +++ b/atom/common/native_mate_converters/blink_converter.cc @@ -391,11 +391,11 @@ v8::Local Converter::ToV8( mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate); dict.Set("count", (uint32_t)stat.count); - dict.Set("size", (uint32_t)(stat.size >> 10)); - dict.Set("liveSize", (uint32_t)(stat.liveSize >> 10)); - dict.Set("decodedSize", (uint32_t)(stat.decodedSize >> 10)); - dict.Set("purgedSize", (uint32_t)(stat.purgedSize >> 10)); - dict.Set("purgeableSize", (uint32_t)(stat.purgeableSize >> 10)); + dict.Set("size", (double)stat.size); + dict.Set("liveSize", (double)stat.liveSize); + dict.Set("decodedSize", (double)stat.decodedSize); + dict.Set("purgedSize", (double)stat.purgedSize); + dict.Set("purgeableSize", (double)stat.purgeableSize); return dict.GetHandle(); }