Software /
code /
prosody-modules
Changeset
1073:fe57e9332e52
mod_statistics/top.lua: Fix session sorting function (seems it must always return false when a==b)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 15 Jun 2013 20:16:58 +0100 |
parents | 1072:4dbdb1b465e8 |
children | 1074:cccd9f6a628d |
files | mod_statistics/top.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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