Skip to content

Commit 1a2fa89

Browse files
committed
more fixes at usage bar
1 parent 9034dc1 commit 1a2fa89

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/django-bbx/mucua/views.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ def mucua_get_info(request, uuid, repository=None):
111111

112112
mucua_info['local annex size'] = convertToGB(
113113
str(float(local_annex_size.group(1))), size_list[local_annex_size.group(2)])
114-
mucua_info['local used by other'] = str(
115-
str(
116-
used - float(re_crop_unit.match(mucua_info['local annex size']).group(1))
117-
)) + 'GB'
118-
if mucua_info['local used by other'] > 0:
114+
mucua_info['local used by other'] = convertToGB(
115+
str(used - float(re_crop_unit.match(mucua_info['local annex size']).group(1))
116+
), size_list[network_size.group(2)]
117+
)
118+
if mucua_info['local used by other'] < 0:
119119
mucua_info['local used by other'] = 0
120120

121121
mucua_info['network size'] = convertToGB(

0 commit comments

Comments
 (0)