diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-18 22:29:22 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-18 22:29:22 +0600 |
commit | 2f1c26bd78064832b2c55e94a0fc0350743641e3 (patch) | |
tree | 5e8790a122252e5fb164fc4b83d41c2f9e8df1f4 | |
parent | d25238fead4b5c07fe05bc2a29df759075a93bdc (diff) | |
parent | 0201c9c48440cd4de9a67e646b22747bc7727baa (diff) | |
download | rspamd-2f1c26bd78064832b2c55e94a0fc0350743641e3.tar.gz rspamd-2f1c26bd78064832b2c55e94a0fc0350743641e3.zip |
Merge pull request #5260 from fatalbanana/fuzzyping
[Minor] Fix transposed results in `rspamadm fuzzy_ping`
-rw-r--r-- | lualib/rspamadm/fuzzy_ping.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/rspamadm/fuzzy_ping.lua b/lualib/rspamadm/fuzzy_ping.lua index e0345da5f..12d41c1ea 100644 --- a/lualib/rspamadm/fuzzy_ping.lua +++ b/lualib/rspamadm/fuzzy_ping.lua @@ -167,7 +167,7 @@ local function print_results(results) local total = #l + (err_servers[s] or 0) print(highlight('Summary for %s: %d packets transmitted, %d packets received, %.1f%% packet loss', s, total, #l, (total - #l) * 100.0 / total)) - local mean, std = std_mean(l) + local std, mean = std_mean(l) local max, min = maxmin(l) print(string.format('round-trip min/avg/max/std-dev = %.2f/%.2f/%.2f/%.2f ms', min, mean, |