Configuration file measurement units

配置文件的相关单位

Sizes can be specified in bytes, kilobytes (suffixes k and K) or megabytes (suffixes m and M), for example, “1024”, “8k”, “1m”.

可以用字节、千字节(后缀kK)或兆字节(后缀code>m和M)为单位指定大小,例如 "1024"、"8k"、"1m"。

Offsets may be also specified in gigabytes using g or G suffixes.

吉比特也可以用后缀gG来表示

Time intervals can be specified in milliseconds, seconds, minutes, hours, days and so on, using the following suffixes:

时间间隔可以用毫秒、秒、分、小时、天等单位指定,并使用以下后缀:

msmilliseconds 毫秒
sseconds 秒
mminutes 分钟
hhours 小时
ddays 天
wweeks 周
Mmonths, 30 days 月(30天)
yyears, 365 days 年(365天)

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.

多个单位可以合并为一个值,方法是按照从右到左,从小到大的顺序,并用空格分隔。例如,"1h 30m"与"90m"或"5400s"表示相同的时间。值后没有没有单位,默认为秒。建议指定一个明确的单位。

Some of the time intervals can be specified only with a seconds resolution.

某些时间间隔只能精确到秒