summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-10-14 17:15:28 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-10-14 17:15:28 (GMT)
commitca61b8b91bb1e602dd2de304c4d5bf912644edfa (patch)
tree5a70cf36d36f9430aff7a15de13e27c1a42493ed
parent782709e22773493e8d6ce9a70abdfc45b175d01a (diff)
downloadkolab-chwala-ca61b8b91bb1e602dd2de304c4d5bf912644edfa.tar.gz
Fix SeaFile quota() result
-rw-r--r--lib/drivers/seafile/seafile_file_storage.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/drivers/seafile/seafile_file_storage.php b/lib/drivers/seafile/seafile_file_storage.php
index e8323f4..1531bcc 100644
--- a/lib/drivers/seafile/seafile_file_storage.php
+++ b/lib/drivers/seafile/seafile_file_storage.php
@@ -941,8 +941,9 @@ class seafile_file_storage implements file_storage
}
$quota = array(
- 'total' => $account_info['total'],
- 'usage' => $account_info['usage'],
+ // expected values in kB
+ 'total' => intval($account_info['total'] / 1024),
+ 'used' => intval($account_info['usage'] / 1024),
);
return $quota;