Explorar el Código

Update v-update-user-quota

Sertaç ÇELİK hace 10 años
padre
commit
83f1b3a426
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      bin/v-update-user-quota

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

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