From: Brian Warner Date: Fri, 20 Mar 2015 01:59:16 +0000 (-0700) Subject: check_memory.py: announce 32-bit vs 64-bit X-Git-Url: https://git.rkrishnan.org/components/architecture.txt?a=commitdiff_plain;h=de4d074d9ed1b0309671aa409579dc8398219a04;p=tahoe-lafs%2Ftahoe-lafs.git check_memory.py: announce 32-bit vs 64-bit --- 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.