mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01: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
@ -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 New Issue
Block a user