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-Tag: allmydata-tahoe-1.10.1a1~59 X-Git-Url: https://git.rkrishnan.org/vdrive?a=commitdiff_plain;h=681eb4d12e20d8818ee02baab7b55230a706e76d;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.