From cb77f9eb3358f9fcb35821e09128a99485f61b42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 26 Apr 2022 14:55:12 +0200 Subject: [PATCH] daemon/lua nit: sort RR rank names in debug logs I was diffing logs from different runs and got annoyed by the shuffles. --- daemon/lua/kres.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/lua/kres.lua b/daemon/lua/kres.lua index 84198be41..3d4e7ced2 100644 --- a/daemon/lua/kres.lua +++ b/daemon/lua/kres.lua @@ -970,6 +970,7 @@ local function rank_tostring(rank) table.insert(names, string.lower(name)) end end + table.sort(names) -- pairs() above doesn't give a stable ordering return string.format('0%.2o (%s)', rank, table.concat(names, ' ')) end -- 2.47.3