From de4d074d9ed1b0309671aa409579dc8398219a04 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 19 Mar 2015 18:59:16 -0700 Subject: [PATCH] check_memory.py: announce 32-bit vs 64-bit --- src/allmydata/test/check_memory.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/allmydata/test/check_memory.py b/src/allmydata/test/check_memory.py index 2cca8112..8ee18c73 100644 --- a/src/allmydata/test/check_memory.py +++ b/src/allmydata/test/check_memory.py @@ -503,6 +503,13 @@ if __name__ == '__main__': mode = "upload" if len(sys.argv) > 1: mode = sys.argv[1] + if sys.maxint == 2147483647: + bits = "32" + elif sys.maxint == 9223372036854775807: + bits = "64" + else: + bits = "?" + print "%s-bit system (sys.maxint=%d)" % (bits, sys.maxint) # put the logfile and stats.out in _test_memory/ . These stick around. # put the nodes and other files in _test_memory/test/ . These are # removed each time we run. -- 2.45.2