Updated dependencies and added avct/uasurfer (#8089)
* Updated dependencies and added avct/uasurfer * Added uasurfer to NOTICE.txt
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f5c8a71698
Коммит
2fa7c464f0
3
vendor/github.com/prometheus/common/model/time.go
сгенерированный
поставляемый
3
vendor/github.com/prometheus/common/model/time.go
сгенерированный
поставляемый
@@ -214,6 +214,9 @@ func (d Duration) String() string {
|
||||
ms = int64(time.Duration(d) / time.Millisecond)
|
||||
unit = "ms"
|
||||
)
|
||||
if ms == 0 {
|
||||
return "0s"
|
||||
}
|
||||
factors := map[string]int64{
|
||||
"y": 1000 * 60 * 60 * 24 * 365,
|
||||
"w": 1000 * 60 * 60 * 24 * 7,
|
||||
|
||||
3
vendor/github.com/prometheus/common/model/time_test.go
сгенерированный
поставляемый
3
vendor/github.com/prometheus/common/model/time_test.go
сгенерированный
поставляемый
@@ -91,6 +91,9 @@ func TestParseDuration(t *testing.T) {
|
||||
out time.Duration
|
||||
}{
|
||||
{
|
||||
in: "0s",
|
||||
out: 0,
|
||||
}, {
|
||||
in: "324ms",
|
||||
out: 324 * time.Millisecond,
|
||||
}, {
|
||||
|
||||
Ссылка в новой задаче
Block a user