From a793f09dfc23d4c97e5852f1f72462142c84d52c Mon Sep 17 00:00:00 2001 From: Arko Dasgupta Date: Fri, 6 Dec 2024 09:44:36 -0800 Subject: [PATCH] Fix time conversion for year * 365 days in a year, not 356 Signed-off-by: Arko Dasgupta --- src/utils/utilities.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/utilities.go b/src/utils/utilities.go index 98d0b385..83f55979 100644 --- a/src/utils/utilities.go +++ b/src/utils/utilities.go @@ -29,7 +29,7 @@ func UnitToDivider(unit pb.RateLimitResponse_RateLimit_Unit) int64 { case pb.RateLimitResponse_RateLimit_MONTH: return 60 * 60 * 24 * 30 case pb.RateLimitResponse_RateLimit_YEAR: - return 60 * 60 * 24 * 356 + return 60 * 60 * 24 * 365 } panic("should not get here")