From 662cc57d8249ad1d2749a2b420a452822d07eba0 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 --- weblog-listfiles-html.lsp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'weblog-listfiles-html.lsp') diff --git a/weblog-listfiles-html.lsp b/weblog-listfiles-html.lsp index 8cc522c..b55d972 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.0 - elseif string.find(size, "M$") then - return tonumber(string.match(size, "[%d.]*")) * 1024.0 * 1024.0 - elseif string.find(size, "G$") then - return tonumber(string.match(size, "[%d.]*")) + 1024.0 * 1024.0 * 1024.0 - else - return tonumber(string.match(size, "[%d.]*")) - end -end -%> -