Browse Source

better round in usageUpdate

andre 4 years ago
parent
commit
5812d9f778
1 changed files with 2 additions and 2 deletions
  1. 2 2
      zimbraSingle.php

+ 2 - 2
zimbraSingle.php

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