]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
check_memory.py: announce 32-bit vs 64-bit
authorBrian Warner <warner@lothar.com>
Fri, 20 Mar 2015 01:59:16 +0000 (18:59 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 20 Mar 2015 01:59:16 +0000 (18:59 -0700)
src/allmydata/test/check_memory.py

index 2cca811277928ffc0dfb9a97ea9e64dc113d928d..8ee18c73f68f1013376a45f93413921baf22900e 100644 (file)
@@ -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.