From d4d5200c5b9bb770e152486ff68d6d6e0151dd7b Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 24 Oct 2015 16:35:04 +0200 Subject: [PATCH] mod_http_upload_quota: Apply minor improvement --- mod_http_upload/src/mod_http_upload_quota.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_http_upload/src/mod_http_upload_quota.erl b/mod_http_upload/src/mod_http_upload_quota.erl index 8e53973..224a257 100644 --- a/mod_http_upload/src/mod_http_upload_quota.erl +++ b/mod_http_upload/src/mod_http_upload_quota.erl @@ -139,13 +139,13 @@ handle_cast({handle_slot_request, #jid{user = U, server = S} = JID, Path, Size}, access_hard_quota = AccessHardQuota, disk_usage = DiskUsage} = State) -> HardQuota = case acl:match_rule(ServerHost, AccessHardQuota, JID) of - Hard when is_integer(Hard), Hard >= 0 -> + Hard when is_integer(Hard), Hard > 0 -> Hard * 1024 * 1024; _ -> 0 end, SoftQuota = case acl:match_rule(ServerHost, AccessSoftQuota, JID) of - Soft when is_integer(Soft), Soft >= 0 -> + Soft when is_integer(Soft), Soft > 0 -> Soft * 1024 * 1024; _ -> 0