Unverified Commit 1263b7de authored by Garfield Dai's avatar Garfield Dai Committed by GitHub

fix: vector_size convert bytes to MB. (#1684)

parent 75a61221
...@@ -14,8 +14,9 @@ class BillingService: ...@@ -14,8 +14,9 @@ class BillingService:
billing_info = cls._send_request('GET', '/info', params=params) billing_info = cls._send_request('GET', '/info', params=params)
vector_size = DatasetService.get_tenant_datasets_usage(tenant_id) / 1024 vector_size = DatasetService.get_tenant_datasets_usage(tenant_id)
billing_info['vector_space']['size'] = int(vector_size) # Convert bytes to MB
billing_info['vector_space']['size'] = int(vector_size / 1024 / 1024)
return billing_info return billing_info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment