Browse Source

Fix error in condor and scratch partition sizes evaluation

Alessandro De Gennaro 4 years ago
parent
commit
c3124167c1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      parse-arguments.sh

+ 3 - 3
parse-arguments.sh

@@ -51,9 +51,9 @@ default()
 	fi
 	VM_SIZE=$(to_sectors 100G)
 	SWAP_SIZE=$(( $RAM_SIZE + $(to_sectors 1G) ))
-	FREE_SIZE=$(( ( $DEVICE_SIZE - $VM_SIZE - $SWAP_SIZE ) / 10 ))
-	CONDOR_SIZE=$(( ( $DEVICE_SIZE - $FREE_SIZE ) / 10 * 4 ))
-	TEMP_SIZE=$(( ( $DEVICE_SIZE - $FREE_SIZE ) / 10 * 6 ))
+	FREE_SIZE=$(( $DEVICE_SIZE - $VM_SIZE - $SWAP_SIZE ))
+	CONDOR_SIZE=$(( $FREE_SIZE  * 4 / 10 ))
+	TEMP_SIZE=$(( $FREE_SIZE  * 6 / 10 ))
 }
 
 manual()