diff options
author | Harshavardhana <harsha@gluster.com> | 2010-03-26 06:52:47 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-03-29 00:12:33 -0700 |
commit | fdad0442798cecff09f7aa7e3d58151cb2cdf34f (patch) | |
tree | 5e57eebbc5751c8fb9afceeee8396479775f3b4c /extras | |
parent | 4cb614047e4c9180d2960d06675f46d7504bb1e0 (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.py | 2 |
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: |