Fix backwards cstrg, mstrg. Add 'used'.
Totally my fault.
This commit is contained in:
parent
d10af70992
commit
ce789e105e
1 changed files with 6 additions and 1 deletions
|
@ -541,7 +541,12 @@ class Mega:
|
||||||
'v': 1
|
'v': 1
|
||||||
}
|
}
|
||||||
json_resp = self._api_request(request)
|
json_resp = self._api_request(request)
|
||||||
return {'total': json_resp['cstrg'], 'remaining': json_resp['mstrg']}
|
response = {
|
||||||
|
'total': json_resp['mstrg'],
|
||||||
|
'used': json_resp['cstrg'],
|
||||||
|
'remaining': json_resp['mstrg'] - json_resp['cstrg'],
|
||||||
|
}
|
||||||
|
return response
|
||||||
|
|
||||||
def get_storage_space(self, giga=False, mega=False, kilo=False):
|
def get_storage_space(self, giga=False, mega=False, kilo=False):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue