mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 07:44:08 -07:00
show vmaxb instead of fs total-size (#1120)
This commit is contained in:
parent
4c73704ce7
commit
d8c732469b
|
|
@ -1834,6 +1834,7 @@ class HttpCli(object):
|
|||
bfree, btot, _ = get_df(vn.realpath, False)
|
||||
if btot:
|
||||
if "vmaxb" in vn.flags:
|
||||
btot = vn.lim.vbmax
|
||||
if bfree == vn.lim.c_vb_r:
|
||||
bfree = min(bfree, max(0, vn.lim.vbmax - vn.lim.c_vb_v))
|
||||
else:
|
||||
|
|
@ -6744,6 +6745,7 @@ class HttpCli(object):
|
|||
free, total, zs = get_df(abspath, False)
|
||||
if total:
|
||||
if "vmaxb" in vn.flags:
|
||||
total = vn.lim.vbmax
|
||||
if free == vn.lim.c_vb_r:
|
||||
free = min(free, max(0, vn.lim.vbmax - vn.lim.c_vb_v))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue