From 2609c2a70d3f1dc75bc695c0421c5a54a523e961 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 20 Nov 2015 22:40:32 +0000 Subject: Replace convertsize function with orig_size --- asterisk-listfiles-html.lsp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/asterisk-listfiles-html.lsp b/asterisk-listfiles-html.lsp index 765b54a..d4d1080 100644 --- a/asterisk-listfiles-html.lsp +++ b/asterisk-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 -%> -