Commits

Zhang Huangbin committed a179ece

Fixed: Incorrect per-user quota usage calculation. Thanks paparaciz <helpaz@gmail> for the report and suggested fix.

  • Participants
  • Parent commits deba097

Comments (0)

Files changed (2)

ChangeLog.dbmail_mysql

         + Show search string in search result page.
 
     * Fixed:
+        + Incorrect per-user quota usage calculation.
+          Thanks paparaciz <helpaz@gmail> for the report and suggested fix.
         + Fix possible 'internal server error' caused by incorrect timestamp
           of dbmail_users.last_login.
           Thanks Jure Pečar <jure.pecar _at_ arctur.si> for the report.

templates/default/dbmail_mysql/user/list.html

                             <td class="vcenter">{{ _('Unlimited') }}</td>
                         {% endif %}
                     {% else %}
-                        {% set percent = r.curmail_size |getPercentage(r.maxmail_size |int * 1024 * 1024) %}
+                        {% set percent = r.curmail_size |getPercentage(r.maxmail_size |int) %}
                         <td class="vcenter">
                             <div>
                                 <span title="{{ _('Edit quota setting') }}"><a href="{{ctx.homepath}}/profile/user/general/{{username}}">{{ percent }}%</a></span>