addition to last commit

This commit is contained in:
Til Schmitter 2026-04-04 13:10:18 +02:00
parent 06b2ff3e56
commit 388f7e5f73

View file

@ -7017,7 +7017,7 @@ class HttpCli(object):
h1 = humansize(free or 0)
h2 = humansize(total)
srv_info.append("{} free of {}".format(h1, h2))
if(total > 0)
if(total > 0):
space_used_percent = (total - (free or 0)) / total * 100
elif zs:
self.log("diskfree(%r): %s" % (abspath, zs), 3)