From 2933fa6475736258973a403ef7ef4700c27219cb Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 18 Sep 2014 14:08:04 +0000 Subject: Simplify listfiles HTML view to use orig_size for sorting --- freeradius3-listfiles-html.lsp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/freeradius3-listfiles-html.lsp b/freeradius3-listfiles-html.lsp index 8fb4f33..812543a 100644 --- a/freeradius3-listfiles-html.lsp +++ b/freeradius3-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 -%> -