mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
Changed humanize_megabytes
This commit is contained in:
parent
fab2a612ac
commit
ee7ec9bfb3
@ -106,8 +106,6 @@ def humanize_megabytes(mb):
|
|||||||
if not mb:
|
if not mb:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
print(factors['mega'])
|
|
||||||
|
|
||||||
bytes = int(mb * 1024**2)
|
bytes = int(mb * 1024**2)
|
||||||
|
|
||||||
if bytes >= factors["tera"]:
|
if bytes >= factors["tera"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user