mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/flagutil: rm misleading minutes
support from flagutil.Duration
docs (#7066)
### Describe Your Changes `flagutil.Duration` docs state that `m` suffix stands for `minute`, but in fact this suffix is not supported due to ambiguity with `month` ### Checklist The following checks are **mandatory**: - [x] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/). Signed-off-by: Alexander Frolov <winningpiece@gmail.com>
This commit is contained in:
parent
ab0d31a7b0
commit
f0d1db81dc
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ import (
|
|||
//
|
||||
// DefaultValue is in months.
|
||||
func NewDuration(name string, defaultValue string, description string) *Duration {
|
||||
description += "\nThe following optional suffixes are supported: s (second), m (minute), h (hour), d (day), w (week), y (year). " +
|
||||
description += "\nThe following optional suffixes are supported: s (second), h (hour), d (day), w (week), y (year). " +
|
||||
"If suffix isn't set, then the duration is counted in months"
|
||||
d := &Duration{}
|
||||
if err := d.Set(defaultValue); err != nil {
|
||||
|
|
Loading…
Reference in a new issue