summaryrefslogtreecommitdiffstats
path: root/files/templates/part.list.php
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-20 16:06:58 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-20 16:06:58 +0200
commitf40a1c8cb8c2782569ba646b39a27675d145de25 (patch)
tree4f6589b6c65f18ae0e022458fd1365a5617104fb /files/templates/part.list.php
parent6b034ad2f9ef2d5443cc9b1b02b19ba20a11f37f (diff)
downloadnextcloud-server-f40a1c8cb8c2782569ba646b39a27675d145de25.tar.gz
nextcloud-server-f40a1c8cb8c2782569ba646b39a27675d145de25.zip
fixed file size color calculation
Diffstat (limited to 'files/templates/part.list.php')
-rw-r--r--files/templates/part.list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/templates/part.list.php b/files/templates/part.list.php
index 14a359fe668..d717f288851 100644
--- a/files/templates/part.list.php
+++ b/files/templates/part.list.php
@@ -1,6 +1,6 @@
<?php foreach($_['files'] as $file):
$simple_file_size = simple_file_size($file['size']);
- $simple_size_color = 200-intval(pow($simple_file_size,3)); ?>
+ $simple_size_color = 200-intval(pow(($file['size']/(1024*1024)),2)); ?>
<tr data-file="<?php echo $file['name'];?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>">
<td class="selection"><input type="checkbox" /></td>
<td class="filename">