Website harddisk quota with unlimited setting and negative usage percentages

Discussion in 'Developers' Forum' started by Pyanepsion, Jan 4, 2026.

  1. Pyanepsion

    Pyanepsion Member

    Observation
    When the disk quota is set to unlimited, calculations treat the sentinel value (-1) as a real numeric value, which leads to display anomalies, in particular negative percentages.
    However, an unlimited quota does not remove the notion of a limit; it only removes the per-site limit. The relevant limit then becomes the actual capacity of the storage volume.
    The usage percentage should, therefore, be calculated against this capacity in order to provide information that is correct, consistent, and genuinely useful for server administration.
     
    /dev/null/ and ahrasis like this.

Share This Page