From d4714d31c967f784287529c25765b1cd2ee9634a Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 24 Oct 2014 19:03:17 +0000 Subject: In listfiles HTML view, replace convertsize function with orig_size because throws an exception when file is missing (cherry picked from commit 662cc57d8249ad1d2749a2b420a452822d07eba0) Conflicts: weblog-listfiles-html.lsp --- weblog-listfiles-html.lsp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/weblog-listfiles-html.lsp b/weblog-listfiles-html.lsp index fcca5b3..cb64723 100644 --- a/weblog-listfiles-html.lsp +++ b/weblog-listfiles-html.lsp @@ -3,20 +3,6 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> -<% -function convertsize(size) - if string.find(size, "k$") then - return tonumber(string.match(size, "%d*")) * 1024 - elseif string.find(string.match(size, "%d*"), "M$") then - return tonumber(size) * 1024 * 1024 - elseif string.find(size, "G$") then - return tonumber(string.match(size, "%d*")) + 1024 * 1024 * 1024 - else - return tonumber(size) - end -end -%> -