From 94a0a302dab75c3a901c736a47b93b614d5e83d1 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Dec 2015 13:38:14 +0000 Subject: Change logfiles filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions --- logfiles-status-html.lsp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'logfiles-status-html.lsp') diff --git a/logfiles-status-html.lsp b/logfiles-status-html.lsp index e85a9ba..688d975 100644 --- a/logfiles-status-html.lsp +++ b/logfiles-status-html.lsp @@ -2,20 +2,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 -%> -