[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/3] Handle systems with more than 2147483647 kB of memory (#704593).



Our code had a limit of 2TB for the memory check.  At least one reporter is
trying to install on a system with 3TB of memory and anaconda reports that
he does not have enough memory.  The log file reports he has -1119974932 kB
of memory.
---
 iutil.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/iutil.py b/iutil.py
index ca20002..596b5d2 100644
--- a/iutil.py
+++ b/iutil.py
@@ -438,7 +438,7 @@ def memInstalled():
             mem = fields[1]
             break
 
-    return int(mem)
+    return long(mem)
 
 ## Suggest the size of the swap partition that will be created.
 # @param quiet Should size information be logged?
-- 
1.7.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]