]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixed file size color calculation
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Wed, 20 Jul 2011 14:06:58 +0000 (16:06 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Wed, 20 Jul 2011 14:06:58 +0000 (16:06 +0200)
files/templates/part.list.php

index 14a359fe66869474bf27b8c4a78d6a284cdfcbde..d717f288851226c2632408d215b3fd1909f2f108 100644 (file)
@@ -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">