Changeset

3408:b2ce818ec19c

mod_pubsub_stats: Sort summary
author Kim Alvefur <zash@zash.se>
date Sat, 22 Dec 2018 16:39:47 +0100
parents 3407:26ae3b6a8a57
children 3409:1900280e2a90
files mod_pubsub_stats/mod_pubsub_stats.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_pubsub_stats/mod_pubsub_stats.lua	Sat Dec 22 16:34:51 2018 +0100
+++ b/mod_pubsub_stats/mod_pubsub_stats.lua	Sat Dec 22 16:39:47 2018 +0100
@@ -49,6 +49,7 @@
 			table.insert(summary, string.format("%s: %g %s", stat.attr.name, tonumber(stat.attr.value), stat.attr.units or ""));
 		end
 	end
+	table.sort(summary);
 	return table.concat(summary, "\n");
 end);