88<article name =" Configuration file measurement units"
99 link =" /en/docs/syntax.html"
1010 lang =" en"
11- rev =" 3 " >
11+ rev =" 4 " >
1212
13- <section >
13+ <section id = " summary " >
1414
1515<para >
16- Sizes can be specified in bytes, kilobytes
17- (suffixes <literal >k</literal > and <literal >K</literal >) or megabytes
18- (suffixes <literal >m</literal > and <literal >M</literal >), for example,
16+ nginx supports several measurement units for specifying
17+ sizes, offsets, and time intervals within configuration files.
18+ </para >
19+
20+ </section >
21+
22+
23+ <section id =" size" name =" Sizes and offsets" >
24+
25+ <para >
26+ Sizes can be specified in bytes, kilobytes, or megabytes
27+ using the following suffixes:
28+
29+ <list type =" bullet" >
30+
31+ <listitem >
32+ <literal >k</literal > and <literal >K</literal > for kilobytes
33+ </listitem >
34+
35+ <listitem >
36+ <literal >m</literal > and <literal >M</literal > for megabytes
37+ </listitem >
38+
39+ </list >
40+ </para >
41+
42+ <para >
43+ For example,
1944“<literal >1024</literal >”, “<literal >8k</literal >”, “<literal >1m</literal >”.
2045</para >
2146
2247<para >
23- Offsets may be also specified in gigabytes using
48+ Offsets can be also specified in gigabytes using the
2449<literal >g</literal > or <literal >G</literal > suffixes.
2550</para >
2651
52+ </section >
53+
54+
55+ <section id =" time" name =" Time intervals" >
56+
2757<para >
2858Time intervals can be specified in milliseconds, seconds,
2959minutes, hours, days and so on, using the following suffixes:
3060<table width =" 30%" >
3161<tr ><td width =" 20%" >ms</td ><td >milliseconds</td ></tr >
32- <tr ><td width =" 20%" >s</td ><td >seconds</td ></tr >
62+ <tr ><td width =" 20%" >s</td ><td >seconds (default) </td ></tr >
3363<tr ><td width =" 20%" >m</td ><td >minutes</td ></tr >
3464<tr ><td width =" 20%" >h</td ><td >hours</td ></tr >
3565<tr ><td width =" 20%" >d</td ><td >days</td ></tr >
@@ -45,12 +75,30 @@ by specifying them in the order from the most to the least significant,
4575and optionally separated by whitespace.
4676For example, “<literal >1h 30m</literal >” specifies the same time
4777as “<literal >90m</literal >” or “<literal >5400s</literal >”.
78+ </para >
79+
80+ <para >
81+ <list type =" bullet" >
82+
83+ <listitem >
84+ <para >
4885A value without a suffix means seconds.
86+ </para >
87+ </listitem >
88+
89+ <listitem >
90+ <para >
4991It is recommended to always specify a suffix.
5092</para >
93+ </listitem >
5194
95+ <listitem >
5296<para >
53- Some of the time intervals can be specified only with a seconds resolution.
97+ Certain time intervals can be specified only with a seconds resolution.
98+ </para >
99+ </listitem >
100+
101+ </list >
54102</para >
55103
56104</section >
0 commit comments