Index: pylib/gyp/generator/ninja.py |
diff --git a/pylib/gyp/generator/ninja.py b/pylib/gyp/generator/ninja.py |
index 423b8c7d40292007314b4272e7e725185eb2c493..9b30c3bb623ca791c9f587af174cd36a4d15c2c6 100644 |
--- a/pylib/gyp/generator/ninja.py |
+++ b/pylib/gyp/generator/ninja.py |
@@ -1361,7 +1361,7 @@ def GetDefaultConcurrentLinks(): |
stat.dwLength = ctypes.sizeof(stat) |
ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat)) |
- return max(1, stat.ullTotalPhys / (4 ** 31)) |
+ return max(1, stat.ullTotalPhys / (4 * (2 ** 30))) # total / 4GB |
else: |
# TODO(scottmg): Implement this for other platforms. |
return 1 |