Diff

plugins/mod_admin_shell.lua @ 10918:b0038e404e0e

mod_admin_shell: Fix display of units for some statistics
author Kim Alvefur <zash@zash.se>
date Sun, 07 Jun 2020 00:18:14 +0200
parent 10902:5d113332855c
child 10929:ad5e373b1419
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Sat Jun 06 16:43:28 2020 +0200
+++ b/plugins/mod_admin_shell.lua	Sun Jun 07 00:18:14 2020 +0200
@@ -1583,7 +1583,7 @@
 			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";