summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-10-01 13:45:49 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-10-01 13:45:49 +0200
commit1d617c4bf6fe58d8eca125df10860ffab15f3e9b (patch)
tree9d1da72d91bccc5f2c459628e110fc53d3e42cfe /lib/private/helper.php
parent41129aff80a343dd316201d200c73105b7b6abb5 (diff)
downloadnextcloud-server-1d617c4bf6fe58d8eca125df10860ffab15f3e9b.tar.gz
nextcloud-server-1d617c4bf6fe58d8eca125df10860ffab15f3e9b.zip
always return float, update doc
Diffstat (limited to 'lib/private/helper.php')
-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 b8e4b451835..f2f72fddcfb 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(