# HG changeset patch # User Matthew Wild # Date 1371323818 -3600 # Node ID fe57e9332e52ad13bf531aed185028d4ea1eb3ce # Parent 4dbdb1b465e8402d1af1b4bff1292d0fd926bf87 mod_statistics/top.lua: Fix session sorting function (seems it must always return false when a==b) diff -r 4dbdb1b465e8 -r fe57e9332e52 mod_statistics/top.lua --- a/mod_statistics/top.lua Sat Jun 15 19:08:34 2013 +0100 +++ b/mod_statistics/top.lua Sat Jun 15 20:16:58 2013 +0100 @@ -109,7 +109,7 @@ local function session_compare(session1, session2) local stats1, stats2 = session1.stats, session2.stats; - return (stats1.total_stanzas_in + stats1.total_stanzas_out) >= + return (stats1.total_stanzas_in + stats1.total_stanzas_out) > (stats2.total_stanzas_in + stats2.total_stanzas_out); end