From fa443b45714d7396b07edb3684da4badf7ca1b46 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 22 Sep 2014 15:00:23 +0000 Subject: Replace convertsize function with orig_size in HTML views --- freeradius3-listmacauthfiles-html.lsp | 16 +--------------- freeradius3-listpasswdfiles-html.lsp | 16 +--------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/freeradius3-listmacauthfiles-html.lsp b/freeradius3-listmacauthfiles-html.lsp index fcb1363..b9972f9 100644 --- a/freeradius3-listmacauthfiles-html.lsp +++ b/freeradius3-listmacauthfiles-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 -%> -