summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 208b7f7..0cb6c4a 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: