VictoriaMetrics/lib/promutils
Aliaksandr Valialkin df7d3c55ed
lib/promutils: hide the math.Round() logic inside ParseTimeMsec() function
This should prevent from bugs similar to https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5801 in the future

This is a follow-up for ce3ec3ff2e
2024-02-23 00:55:32 +02:00
..
duration.go lib/promutils, app/vmalert-tool/unittest: move promutils.Duration.ParseTime() to app/vmalert-tool/unittest.durationToTime() 2023-10-16 14:19:31 +02:00
duration_test.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:00 +02:00
labels.go all: consistently clear prompbmarshal.Label by assigning an empty struct instead of zeroing Name and Value individually 2024-01-21 05:11:05 +02:00
labels_test.go lib/promutils: properly return error when incorrect Prometheus label names are passed to NewLabelsFromString() 2023-05-12 16:52:29 -07:00
labels_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
time.go lib/promutils: hide the math.Round() logic inside ParseTimeMsec() function 2024-02-23 00:55:32 +02:00
time_test.go lib/promutils: hide the math.Round() logic inside ParseTimeMsec() function 2024-02-23 00:55:32 +02:00