Julien Pivotto 3856195bb8 tsdb: use float64 for retention percentage
The retention.percentage config field was typed as uint, which silently
truncated fractional values. Setting percentage: 1.5 in prometheus.yml
resulted in a retention of 1%, with no warning or error.

Remove the redundant MaxPercentage > 100 clamp in main.go; the config
UnmarshalYAML already returns an error for out-of-range values before
this code is reached.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-26 12:39:22 +01:00
..
2023-03-06 23:35:39 +01:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2015-05-07 16:52:14 +02:00
2021-06-12 12:47:47 +02:00
2023-12-11 17:01:52 +01:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00
2021-06-12 12:47:47 +02:00