[#857] config: use size suffixes where possible
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
a0abf10c8e
commit
00f14d4dcd
3 changed files with 6 additions and 6 deletions
|
@ -32,7 +32,7 @@ func From(c *config.Config) *Config {
|
|||
//
|
||||
// Returns SizeDefault if value is not a positive number.
|
||||
func (x *Config) Size() uint64 {
|
||||
s := config.UintSafe(
|
||||
s := config.SizeInBytesSafe(
|
||||
(*config.Config)(x),
|
||||
"size",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue