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
”.k
和K
)或兆字节(后缀m
和M
)为单位指定,例如,“1024
”、“8k
”、“1m
”。
Offsets may be also specified in gigabytes using 偏移量也可以使用g
or G
suffixes.g
或G
后缀以GB为单位指定。
Time intervals can be specified in milliseconds, seconds, minutes, hours, days and so on, using the following suffixes:可以使用以下后缀以毫秒、秒、分钟、小时、天等为单位指定时间间隔:
ms | milliseconds |
s | seconds |
m | minutes |
h | hours |
d | days |
w | weeks |
M | months, 30 days |
y | years, 365 days |
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
”. 1h 30m
”指定的时间与“90m
”或“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.某些时间间隔只能以秒分辨率指定。