From da67a7c45fa1fb4cd3eb48a531a9d07a97410d67 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 20 Nov 2015 22:57:06 +0000 Subject: Replace convertsize function with orig_size --- freeswitch-listfiles-html.lsp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/freeswitch-listfiles-html.lsp b/freeswitch-listfiles-html.lsp index 7192fe4..9dd7e87 100644 --- a/freeswitch-listfiles-html.lsp +++ b/freeswitch-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 -%> -