Explorar o código

better round in usageUpdate

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
5812d9f778
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      zimbraSingle.php

+ 2 - 2
zimbraSingle.php

@@ -263,8 +263,8 @@ function zimbraSingle_UsageUpdate($params) {
                 ->where('id', '=', $product['id'])
                 ->update(
                     array(
-                        'diskusage' => round($mboxSize / 1048576,2),
-                        'disklimit' => round($accountQuota / 1048576,2),
+                        'diskusage' => round($mboxSize / 1048576),
+                        'disklimit' => round($accountQuota / 1048576),
                         'lastupdate' => Capsule::raw('now()')
                     )
                 );