Skip to content

Commit 73e8bda

Browse files
robinstnik9000
authored andcommitted
Docs: Specify that byte units use powers of 1024 (#23574)
In SI units, "kilobyte" or "kB" would mean 1000 bytes, whereas "KiB" is used for 1024. Add a note in `api-conventions.asciidoc` to clarify the meaning in Elasticsearch.
1 parent 1655789 commit 73e8bda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/api-conventions.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ the unit, like `2d` for 2 days. The supported units are:
508508
=== Byte size units
509509

510510
Whenever the byte size of data needs to be specified, eg when setting a buffer size
511-
parameter, the value must specify the unit, like `10kb` for 10 kilobytes. The
512-
supported units are:
511+
parameter, the value must specify the unit, like `10kb` for 10 kilobytes. Note that
512+
these units use powers of 1024, so `1kb` means 1024 bytes. The supported units are:
513513

514514
[horizontal]
515515
`b`:: Bytes

0 commit comments

Comments
 (0)