summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorHarshavardhana <harsha@gluster.com>2010-03-26 06:52:47 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-29 00:12:33 -0700
commitfdad0442798cecff09f7aa7e3d58151cb2cdf34f (patch)
tree5e57eebbc5751c8fb9afceeee8396479775f3b4c /extras
parent4cb614047e4c9180d2960d06675f46d7504bb1e0 (diff)
Fix backtick evaluation bug in cache-size
Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 768 (cache-size might be wrong in glusterfs.vol) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=768
Diffstat (limited to 'extras')
-rw-r--r--extras/volgen/CreateVolfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/volgen/CreateVolfile.py b/extras/volgen/CreateVolfile.py
index 36c2ab9e0..035d2a925 100644
--- a/extras/volgen/CreateVolfile.py
+++ b/extras/volgen/CreateVolfile.py
@@ -4,7 +4,7 @@ import subprocess
num_replica = 2
num_stripe = 4
#Cachesize calculator
-cache_size = "`echo $[ $(grep 'MemTotal' /proc/meminfo | sed 's/[^0-9]//g') / 5120 ]`"
+cache_size = "`echo $(( $(grep 'MemTotal' /proc/meminfo | sed 's/[^0-9]//g') / 5120 ))`"
class CreateVolfile: