From dbc2b0508dfbcbcc893781b7c15416592fd45818 Mon Sep 17 00:00:00 2001 From: Corto Date: Thu, 31 Oct 2024 07:05:15 +0800 Subject: [PATCH] Add missing consts --- src/types.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/types.rs b/src/types.rs index 44b2bb0..dec4197 100644 --- a/src/types.rs +++ b/src/types.rs @@ -4,6 +4,9 @@ use { bytemuck::{Pod, Zeroable}, }; +pub const HOURS_PER_DAY: i64 = 24; +pub const SECONDS_PER_HOURS: i64 = 3600; + pub const MAX_RESOLVED_ROUNDS: usize = 32; pub const ROUND_MIN_DURATION_HOURS: i64 = 6; pub const ROUND_MIN_DURATION_SECONDS: i64 = ROUND_MIN_DURATION_HOURS * SECONDS_PER_HOURS;