mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 15:52:39 -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)
|
bfree, btot, _ = get_df(vn.realpath, False)
|
||||||
if btot:
|
if btot:
|
||||||
if "vmaxb" in vn.flags:
|
if "vmaxb" in vn.flags:
|
||||||
|
btot = vn.lim.vbmax
|
||||||
if bfree == vn.lim.c_vb_r:
|
if bfree == vn.lim.c_vb_r:
|
||||||
bfree = min(bfree, max(0, vn.lim.vbmax - vn.lim.c_vb_v))
|
bfree = min(bfree, max(0, vn.lim.vbmax - vn.lim.c_vb_v))
|
||||||
else:
|
else:
|
||||||
|
|
@ -6744,6 +6745,7 @@ class HttpCli(object):
|
||||||
free, total, zs = get_df(abspath, False)
|
free, total, zs = get_df(abspath, False)
|
||||||
if total:
|
if total:
|
||||||
if "vmaxb" in vn.flags:
|
if "vmaxb" in vn.flags:
|
||||||
|
total = vn.lim.vbmax
|
||||||
if free == vn.lim.c_vb_r:
|
if free == vn.lim.c_vb_r:
|
||||||
free = min(free, max(0, vn.lim.vbmax - vn.lim.c_vb_v))
|
free = min(free, max(0, vn.lim.vbmax - vn.lim.c_vb_v))
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue