[PATCH] Fix incorrect usage percentage in Properties dialog for virtual filesystems
authorEfe Çiftci <efeciftci@gmail.com>
Fri, 16 May 2025 17:50:21 +0000 (20:50 +0300)
committerAurélien COUDERC <coucouf@debian.org>
Sun, 8 Jun 2025 12:42:29 +0000 (14:42 +0200)
commitd26577ca1de0d00cde39dd6a81f2e0d7da4cc9e0
tree8c3676cd67912a2dab314efa24743aaaee70bd16
parent115c76e23f6c4ec0c1413b8ea9bf537a7879bbc6
[PATCH] Fix incorrect usage percentage in Properties dialog for virtual filesystems

The Properties dialog for filesystems such as `/proc/` or `/sys/` shows an
incorrect usage percentage (i.e., "-2,147,483,648% used"). This commit fixes
that issue by avoiding a divbyzero: if the `size` variable is `0`, the
`percentUsed` variable is set to `0`.

Gbp-Pq: Name upstream_81ca0e2c_Fix-incorrect-usage-percentage-in-Properties-dialog-for-virtual-filesystems.patch
src/widgets/kpropertiesdialogbuiltin_p.cpp