diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-10-02 08:57:04 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-10-02 08:57:04 +0200 |
commit | 3098fd0d300f4cad331e4219f696d19bcc617eb2 (patch) | |
tree | 2fe2a459a3e7d5ff59de1c17842a8138e19368f2 /lib | |
parent | b18307aafbe55cb2ee1e048d10514392c54b73be (diff) | |
parent | 1d617c4bf6fe58d8eca125df10860ffab15f3e9b (diff) | |
download | nextcloud-server-3098fd0d300f4cad331e4219f696d19bcc617eb2.tar.gz nextcloud-server-3098fd0d300f4cad331e4219f696d19bcc617eb2.zip |
Merge pull request #19505 from owncloud/returnfloatforquota
always return float, update doc
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index dcd263daa24..ba1240a5218 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -274,7 +274,7 @@ class OC_Helper { /** * Make a computer file size * @param string $str file size in human readable format - * @return int a file size in bytes + * @return float a file size in bytes * * Makes 2kB to 2048. * @@ -283,7 +283,7 @@ class OC_Helper { public static function computerFileSize($str) { $str = strtolower($str); if (is_numeric($str)) { - return $str; + return floatval($str); } $bytes_array = array( |