diff --git a/addon/www/index.html b/addon/www/index.html
index 4441224..8b15ed3 100644
--- a/addon/www/index.html
+++ b/addon/www/index.html
@@ -310,7 +310,7 @@ along with this program. If not, see .
function format_size(size) {
if (size < 0) {
- size = 0;
+ return '';
}
if (size > 1024 * 1024 * 1024) {
return (parseInt(size)/1024/1024/1024).toFixed(1) + ' GB'
@@ -426,14 +426,16 @@ along with this program. If not, see .
usage = (parseFloat(partition.filesystem_usage) * 100).toFixed(0) + '%'
}
var st = (is_sys_partition) ? 'style="font-weight:bolder"' : '';
+ var used = (partition.filesystem_used == -1) ? '' : format_size(partition.filesystem_used);
+ var free = (partition.filesystem_used == -1) ? '' : format_size(partition.size-partition.filesystem_used);
$("#volume-info tbody").append($('
').append(
$('').append($('')),
$(' | ').append($('')),
$(' | ').append($('')),
$(' | ').append($('')),
$(' | ').append($('')),
- $(' | ').append($('')),
- $(' | ').append($('')),
+ $(' | ').append($('')),
+ $(' | ').append($('')),
$(' | ').append(menu)
));
}
|