Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
10917:1eb83bc6f706 | 10918:b0038e404e0e |
---|---|
1581 for _, v in ipairs(stat_info.output) do | 1581 for _, v in ipairs(stat_info.output) do |
1582 print(v); | 1582 print(v); |
1583 end | 1583 end |
1584 print(""); | 1584 print(""); |
1585 else | 1585 else |
1586 print(("%-50s %s"):format(stat_info[1], format_stat(stat_info[2], (stat_info[4] or {}).unit, stat_info[3]))); | 1586 print(("%-50s %s"):format(stat_info[1], format_stat(stat_info[2], (stat_info[4] or {}).units, stat_info[3]))); |
1587 end | 1587 end |
1588 end | 1588 end |
1589 return #stats.." statistics displayed"; | 1589 return #stats.." statistics displayed"; |
1590 end | 1590 end |
1591 | 1591 |