Skip to content

Commit 83f1b3a

Browse files
committed
Update v-update-user-quota
1 parent 3bcad00 commit 83f1b3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-update-user-quota

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ is_object_valid 'user' 'USER' "$user"
3131
#----------------------------------------------------------#
3232

3333
# Updating disk quota
34-
# Hard quota set to more than 10%. This is more meaningful.
34+
# Had quota equals package value. Soft quota equals 90% of package value for warnings.
3535
quota=$(get_user_value '$DISK_QUOTA')
36-
soft=$((quota * 1024))
37-
hard=$((soft * 1.10))
36+
soft=$((quota * 1024 * 0.90))
37+
hard=$((quota * 1024))
3838

3939
# Searching home mount point
4040
mnt=$(df -P /home |awk '{print $6}' |tail -n1)

0 commit comments

Comments
 (0)