# HG changeset patch # User Matthew Wild # Date 1680865409 -3600 # Node ID 5043108b14f4486a41f715ad86341905cefe5aa0 # Parent c5ecfb06afde98d91e6132cd848b1657c8955a50 mod_audit: Display most recent entries first, rather than showing oldest This matches the output of 'lastb'. diff -r c5ecfb06afde -r 5043108b14f4 mod_audit/mod_audit.lua --- a/mod_audit/mod_audit.lua Fri Apr 07 12:00:31 2023 +0100 +++ b/mod_audit/mod_audit.lua Fri Apr 07 12:03:29 2023 +0100 @@ -142,6 +142,7 @@ local results, err = store:find(nil, { with = arg.user; limit = arg.limit and tonumber(arg.limit) or nil; + reverse = true; }) if not results then print("EE: Failed to query audit log: "..tostring(err));