From 8a29f30fb2a949c03b318c4f7699136a8001be37 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 13 Feb 2022 12:17:00 +0100 Subject: Synchronize deck only if necessary Look at the modification time of the deck, and synchronize if it has been modified after the last deck read. --- src/space_repetition.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/space_repetition.rs') diff --git a/src/space_repetition.rs b/src/space_repetition.rs index 25cae7f..e2ab382 100644 --- a/src/space_repetition.rs +++ b/src/space_repetition.rs @@ -6,8 +6,8 @@ use serde::{Deserialize, Serialize}; // Learning const LEARNING_INTERVALS: [f32; 2] = [ - 1.0 / 60.0 / 24.0, // 1 minute - 10.0 / 60.0 / 24.0, // 10 minutes + 1.0 / 60.0 / 24.0, // 1 minute (in days) + 10.0 / 60.0 / 24.0, // 10 minutes (in days) ]; // Ease @@ -30,7 +30,7 @@ const INTERVAL_EASY_MUL: f32 = 1.3; // Relearning const RELEARNING_INTERVALS: [f32; 1] = [ - 10.0 / 60.0 / 24.0, // 10 minutes + 10.0 / 60.0 / 24.0, // 10 minutes (in days) ]; #[derive(Debug, PartialEq, Deserialize, Serialize)] -- cgit v1.2.3