Explorar o código

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.
Robin Stocker %!s(int64=8) %!d(string=hai) anos
pai
achega
6e9dfb3348
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      docs/reference/api-conventions.asciidoc

+ 2 - 2
docs/reference/api-conventions.asciidoc

@@ -506,8 +506,8 @@ the unit, like `2d` for 2 days.  The supported units are:
 === Byte size units
 
 Whenever the byte size of data needs to be specified, eg when setting a buffer size
-parameter, the value must specify the unit, like `10kb` for 10 kilobytes.  The
-supported units are:
+parameter, the value must specify the unit, like `10kb` for 10 kilobytes. Note that
+these units use powers of 1024, so `1kb` means 1024 bytes. The supported units are:
 
 [horizontal]
 `b`::   Bytes