]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix transposed results in `rspamadm fuzzy_ping` 5260/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 17 Dec 2024 23:00:27 +0000 (01:00 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 17 Dec 2024 23:00:27 +0000 (01:00 +0200)
lualib/rspamadm/fuzzy_ping.lua

index e0345da5f5cc1414f5f8ff243b8d4ba696c55fe8..12d41c1ea74604146cfb9480762a8d21a1aff4be 100644 (file)
@@ -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,