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(); }