summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2018-03-21 13:45:51 +0100
committerSimon Rettberg2018-03-21 13:45:51 +0100
commitd66b2b66dc5b8982bef236a40a9422906a175e92 (patch)
tree71f55d5a5b0a279f8386383344198cae01fe6384 /inc/util.inc.php
parent[inc/Util] readableFileSize: Use thin space, determine decimals after division (diff)
downloadslx-admin-d66b2b66dc5b8982bef236a40a9422906a175e92.tar.gz
slx-admin-d66b2b66dc5b8982bef236a40a9422906a175e92.tar.xz
slx-admin-d66b2b66dc5b8982bef236a40a9422906a175e92.zip
[inc/Util] readableFileSize: Remove superfluous round()
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r--inc/util.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php
index 52e1dbca..9f6f63db 100644
--- a/inc/util.inc.php
+++ b/inc/util.inc.php
@@ -244,7 +244,7 @@ SADFACE;
if ($factor === 0) {
$decimals = 0;
} else {
- $bytes = round($bytes / pow(1024, $factor));
+ $bytes = $bytes / pow(1024, $factor);
if ($decimals === -1) {
$decimals = 2 - floor(strlen((int)$bytes) - 1);
}