summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorHarshavardhana <harsha@gluster.com>2010-03-26 06:51:12 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-29 00:12:24 -0700
commit04f1cd8629775fe635fa2c61f83907648f3b4e72 (patch)
treeaccf4caa070f5420a538eddebec2791d0ed4fa69 /extras
parent0b3a225f4b0de4943c6e69eca296b322a9af52bf (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 8eb4be8f853..052ed987a94 100644
--- a/extras/volgen/CreateVolfile.py
+++ b/extras/volgen/CreateVolfile.py
@@ -21,7 +21,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: