Sfoglia il codice sorgente

Update v-update-user-quota

# Hard quota set to more than 10% of soft quota. This is more meaningful.
Sertaç ÇELİK 10 anni fa
parent
commit
3bcad0078d
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      bin/v-update-user-quota

+ 3 - 2
bin/v-update-user-quota

@@ -31,9 +31,10 @@ is_object_valid 'user' 'USER' "$user"
 #----------------------------------------------------------#
 
 # Updating disk quota
+# Hard quota set to more than 10%. This is more meaningful.
 quota=$(get_user_value '$DISK_QUOTA')
-soft=$((quota * 1000))
-hard=$((soft + 50000))
+soft=$((quota * 1024))
+hard=$((soft * 1.10))
 
 # Searching home mount point
 mnt=$(df -P /home |awk '{print $6}' |tail -n1)