projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e60392a
)
check_memory.py: announce 32-bit vs 64-bit
author
Brian Warner
<warner@lothar.com>
Fri, 20 Mar 2015 01:59:16 +0000
(18:59 -0700)
committer
Brian Warner
<warner@lothar.com>
Fri, 20 Mar 2015 01:59:16 +0000
(18:59 -0700)
src/allmydata/test/check_memory.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/check_memory.py
b/src/allmydata/test/check_memory.py
index 2cca811277928ffc0dfb9a97ea9e64dc113d928d..8ee18c73f68f1013376a45f93413921baf22900e 100644
(file)
--- 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.