From 87204087a8a74939d3fe2e1fa93d0aea5471c690 Mon Sep 17 00:00:00 2001 From: Chalith Desaman Date: Fri, 12 Jan 2024 13:38:10 +0530 Subject: [PATCH] Disabled kill switch (#393) --- src/killswitch/killswitch.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/killswitch/killswitch.c b/src/killswitch/killswitch.c index 8c424f90..955c0ac8 100644 --- a/src/killswitch/killswitch.c +++ b/src/killswitch/killswitch.c @@ -14,12 +14,15 @@ uint64_t build_time_sec = 0; */ bool kill_switch(const uint64_t epoch_ms) { - if (build_time_sec == 0) - { - char *eptr; - build_time_sec = strtoull(build_time_sec_str, &eptr, 10); - } + // if (build_time_sec == 0) + // { + // char *eptr; + // build_time_sec = strtoull(build_time_sec_str, &eptr, 10); + // } - const uint64_t epoch_sec = epoch_ms / 1000; - return !(epoch_sec > build_time_sec && (epoch_sec - build_time_sec) <= MAX_LIMIT_SEC); + // const uint64_t epoch_sec = epoch_ms / 1000; + // return !(epoch_sec > build_time_sec && (epoch_sec - build_time_sec) <= MAX_LIMIT_SEC); + + // Commented out kill_switch code in case if it's needed in the future. + return false; } \ No newline at end of file