aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/util/human
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-05 13:18:14 +0200
committerKim Alvefur <zash@zash.se>2021-07-05 13:18:14 +0200
commit185b679953985197b6c087487c01e269c749e5c4 (patch)
treef1449d56f7f7f73924ec1e98d88ddcf193d8552b /teal-src/util/human
parenta8332d2427bf918336f3b0353e28c13280ddd49d (diff)
downloadprosody-185b679953985197b6c087487c01e269c749e5c4.tar.gz
prosody-185b679953985197b6c087487c01e269c749e5c4.zip
util.human.units: Specify enum argument to format()
Diffstat (limited to 'teal-src/util/human')
-rw-r--r--teal-src/util/human/units.d.tl5
1 files changed, 4 insertions, 1 deletions
diff --git a/teal-src/util/human/units.d.tl b/teal-src/util/human/units.d.tl
index f6568d90..3db17c3a 100644
--- a/teal-src/util/human/units.d.tl
+++ b/teal-src/util/human/units.d.tl
@@ -1,5 +1,8 @@
local lib = record
+ enum logbase
+ "b" -- 1024
+ end
adjust : function (number, string) : number, string
- format : function (number, string, string) : string
+ format : function (number, string, logbase) : string
end
return lib