summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoricewind1991 <robin@icewind.nl>2014-03-17 15:21:57 +0100
committericewind1991 <robin@icewind.nl>2014-03-17 15:21:57 +0100
commit5c72b526a39647ee5c852793002ad14efbf13ca1 (patch)
tree271521b8b5ecde7df2daf4862eb475e22fa6253a /lib
parentdf7853363ad9566f73dbd897b53229cd4640361e (diff)
parent145db370d1e83978d0e575a60d7d61fbe1039cc4 (diff)
downloadnextcloud-server-5c72b526a39647ee5c852793002ad14efbf13ca1.tar.gz
nextcloud-server-5c72b526a39647ee5c852793002ad14efbf13ca1.zip
Merge pull request #7760 from owncloud/core-roundbytes
Correctly round bytes when converted from human readable format
Diffstat (limited to 'lib')
-rw-r--r--lib/private/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index 0b1a26bbecd..807fa849637 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -308,7 +308,7 @@ class OC_Helper {
/**
* @brief Make a computer file size
- * @param string $str file size in a fancy format
+ * @param string $str file size in human readable format
* @return int a file size in bytes
*
* Makes 2kB to 2048.
@@ -338,7 +338,7 @@ class OC_Helper {
$bytes *= $bytes_array[$matches[1]];
}
- $bytes = round($bytes, 2);
+ $bytes = round($bytes);
return $bytes;
}