From d6cadfbcdd657894e74d609c67b5c11aea7c68d6 Mon Sep 17 00:00:00 2001 From: mostafaei2002 Date: Tue, 4 Jun 2024 12:34:11 +0330 Subject: [PATCH] fix: add logs --- src/helper/xvb/algorithm.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helper/xvb/algorithm.rs b/src/helper/xvb/algorithm.rs index f67addf..2aa6ea3 100644 --- a/src/helper/xvb/algorithm.rs +++ b/src/helper/xvb/algorithm.rs @@ -75,10 +75,12 @@ pub(crate) fn calcul_donated_time( let manual_amount = lock!(gui_api_xvb).stats_priv.runtime_manual_amount as u32; if lock!(gui_api_xvb).stats_priv.runtime_mode == RuntimeMode::ManuallyDonante { spared_time = XVB_TIME_ALGO * manual_amount / (avg_hr as u32); + info!("spared_time = 600 * {manual_amount} / {avg_hr} = {spared_time}") } if lock!(gui_api_xvb).stats_priv.runtime_mode == RuntimeMode::ManuallyKeep { spared_time = XVB_TIME_ALGO - (XVB_TIME_ALGO * manual_amount / (avg_hr as u32)); + info!("spared_time = 600 * {manual_amount} / {avg_hr} = {spared_time}") } }