diff --git a/pkg/telemetrymeter/tables.go b/pkg/telemetrymeter/tables.go index e2180cbcf8ac..6bc91e9f5425 100644 --- a/pkg/telemetrymeter/tables.go +++ b/pkg/telemetrymeter/tables.go @@ -15,7 +15,7 @@ const ( ) var ( - oneMonthInMilliseconds = uint64(time.Hour * 24 * 30) + oneMonthInMilliseconds = uint64(time.Hour.Milliseconds() * 24 * 30) // when the query requests for almost 1 day, but not exactly 1 day, we need to add an offset to the end time // to make sure that we are using the correct table @@ -27,7 +27,7 @@ var ( // start and end are in milliseconds // we have two tables for samples // 1. distributed_samples -// 2. distributed_samples_v4_agg_1d - for queries with time range above or equal to 30 days +// 2. distributed_samples_agg_1d - for queries with time range above or equal to 30 days // if the `timeAggregation` is `count_distinct` we can't use the aggregated tables because they don't support it func WhichSamplesTableToUse( start, end uint64,