aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-07 00:18:14 +0200
committerKim Alvefur <zash@zash.se>2020-06-07 00:18:14 +0200
commitababc84794a77543eb1b84b5414d46f0eacb41f6 (patch)
treeee5f073ba6ca5cdde9cacc1e19131c0f31da7c2e /plugins
parent4a0cb5a30643224dd6a9ebd91e53e257badaf7f9 (diff)
downloadprosody-ababc84794a77543eb1b84b5414d46f0eacb41f6.tar.gz
prosody-ababc84794a77543eb1b84b5414d46f0eacb41f6.zip
mod_admin_shell: Fix display of units for some statistics
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index f3672496..0154cc65 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -1583,7 +1583,7 @@ local function stats_tostring(stats)
end
print("");
else
- print(("%-50s %s"):format(stat_info[1], format_stat(stat_info[2], (stat_info[4] or {}).unit, stat_info[3])));
+ print(("%-50s %s"):format(stat_info[1], format_stat(stat_info[2], (stat_info[4] or {}).units, stat_info[3])));
end
end
return #stats.." statistics displayed";