# HG changeset patch # User Ruslan Ermilov # Date 1350567313 0 # Node ID e1593207d1cbc996dcf427c67198bdd3790da846 # Parent 99ea52dbb4d42f33720d09f4df82cbfd621b05ad Documented in more detail how time intervals are specified in nginx configuration file, and paraphrased the text about sizes. diff -r 99ea52dbb4d4 -r e1593207d1cb xml/en/docs/syntax.xml --- a/xml/en/docs/syntax.xml Wed Oct 17 14:30:05 2012 +0000 +++ b/xml/en/docs/syntax.xml Thu Oct 18 13:35:13 2012 +0000 @@ -8,21 +8,22 @@
+ rev="3">
-Sizes can be specified in kilobytes (k, -K) and megabytes (m, -M), for example “8k”, -“1m”. -If the suffix is not specified, the value is bytes. +Sizes can be specified in bytes, kilobytes +(suffixes k and K) or megabytes +(suffixes m and M), for example, +“1024”, “8k”, “1m”. -Time can be specified in minutes, hours, days and so on: +Time intervals can be specified in milliseconds, seconds, +minutes, hours, days and so on, using the following suffixes: + @@ -34,10 +35,17 @@ -for example “1h 30m”, “1y 6M”. -Additionally, it is possible to specify time with millisecond -precision (ms) in some directives. -If the suffix is not specified, the value is seconds. +Multiple units can be combined in a single value +by specifying them in the order from the most to the least significant, +and optionally separated by whitespace. +For example, “1h 30m” specifies the same time +as “90m” or “5400s”. +A value without a suffix means seconds. +It is recommended to always specify a suffix. + + + +Some of the time intervals can be specified only with a seconds resolution. diff -r 99ea52dbb4d4 -r e1593207d1cb xml/ru/docs/syntax.xml --- a/xml/ru/docs/syntax.xml Wed Oct 17 14:30:05 2012 +0000 +++ b/xml/ru/docs/syntax.xml Thu Oct 18 13:35:13 2012 +0000 @@ -8,21 +8,22 @@
+ rev="3">
-Размеры можно указывать в килобайтах (k, -K) и мегабайтах (m, -M), например, “8k”, -“1m”. -Если суффикс не указан, то значение задано в байтах. +Размеры можно указывать в байтах, килобайтах +(суффиксы k и K) или мегабайтах +(суффиксы m и M), например, +“1024”, “8k”, “1m”. -Время можно указывать в минутах, часах, днях и так далее: +Интервалы времени можно задавать в миллисекундах, секундах, +минутах, часах, днях и т.д., используя следующие суффиксы:
msmilliseconds
sseconds
mminutes
hhours
+ @@ -34,10 +35,17 @@ -например, “1h 30m”, “1y 6M”. -Также в некоторых директивах возможно указать время -с точностью до миллисекунд (ms). -Если суффикс не указан, то значение задано в секундах. +В одном значении можно комбинировать различные единицы, +указывая их в порядке от более к менее значащим, +и по желанию отделяя их пробелами. +Например, “1h 30m” задаёт то же время, +что и “90m” или “5400s”. +Значение без суффикса задаёт секунды. +Рекомендуется всегда указывать суффикс. + + + +Некоторые интервалы времени можно задать лишь с точностью до секунд.
msмиллисекунды
sсекунды
mминуты
hчасы