mirror of
https://github.com/9001/copyparty.git
synced 2025-12-27 07:54:13 -05:00
show vmaxb instead of fs total-size (#1120)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user