From 83314ddee80f13f6f58dbcc4ab77b9052ec1e939 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Dec 2015 14:15:40 +0000 Subject: Change file actions filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions --- tinydns-listfiles-html.lsp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'tinydns-listfiles-html.lsp') diff --git a/tinydns-listfiles-html.lsp b/tinydns-listfiles-html.lsp index 098b97a..8a35d4f 100644 --- a/tinydns-listfiles-html.lsp +++ b/tinydns-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 -%> -