We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1dff271 + 299561b commit 0dc5251Copy full SHA for 0dc5251
mutiny-core/src/storage.rs
@@ -162,7 +162,7 @@ impl DeviceLock {
162
}
163
164
/// Check if the device is locked
165
- /// This is determined if the time is less than 2 minutes ago
+ /// This is determined if the time is less than `2 * DEVICE_LOCK_INTERVAL_SECS` ago
166
pub fn is_locked(&self, id: &str) -> bool {
167
let now = now().as_secs();
168
let diff = now.saturating_sub(self.time as u64);
0 commit comments