aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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">