Comparison

plugins/mod_admin_shell.lua @ 13473:9eb081616842

mod_admin_shell: Add connection created time This adds an output format option to show the time that the connection was created. Ref #1852
author aidan@jmad.org
date Wed, 03 Apr 2024 21:56:03 -0700
parent 13354:83f3076965f6
child 13489:ae65f199f408
comparison
equal deleted inserted replaced
13472:d5a9847b0e55 13473:9eb081616842
862 align = "right"; 862 align = "right";
863 key = "conn"; 863 key = "conn";
864 mapper = function(conn) 864 mapper = function(conn)
865 if conn then 865 if conn then
866 return conn:serverport(); 866 return conn:serverport();
867 end
868 end;
869 };
870 created = {
871 title = "Connection Created";
872 description = "Time when connection was created";
873 width = #"YYYY MM DD HH:MM:SS";
874 align = "right";
875 key = "conn";
876 mapper = function(conn)
877 if conn then
878 return os.date("%F %T", math.floor(conn.created));
867 end 879 end
868 end; 880 end;
869 }; 881 };
870 dir = { 882 dir = {
871 title = "Dir"; 883 title = "Dir";