fix: optimize speed rate update logic for small values

This commit is contained in:
Tunglies
2025-03-14 22:40:56 +08:00
parent 1f99cee78b
commit 488e8ef1d5
2 changed files with 18 additions and 8 deletions

View File

@@ -5,8 +5,10 @@ use crate::{
wrap_err,
};
use once_cell::sync::Lazy;
use std::sync::atomic::{AtomicI64, Ordering};
use std::time::{SystemTime, UNIX_EPOCH};
use std::{
sync::atomic::{AtomicI64, Ordering},
time::{SystemTime, UNIX_EPOCH},
};
use tauri_plugin_clipboard_manager::ClipboardExt;
// 存储应用启动时间的全局变量