mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
expanded boundaries for Sync Status
This commit is contained in:
parent
7527a30aa9
commit
635b8fdf92
1 changed files with 3 additions and 3 deletions
|
|
@ -124,9 +124,9 @@ pub fn start_ui(
|
||||||
}
|
}
|
||||||
|
|
||||||
// 6️⃣ sync status wording
|
// 6️⃣ sync status wording
|
||||||
let sync_status = if cached_delta_ms.abs() <= 5 {
|
let sync_status = if cached_delta_ms.abs() <= 8 {
|
||||||
"IN SYNC"
|
"IN SYNC"
|
||||||
} else if cached_delta_ms > 5 {
|
} else if cached_delta_ms > 10 {
|
||||||
"CLOCK AHEAD"
|
"CLOCK AHEAD"
|
||||||
} else {
|
} else {
|
||||||
"CLOCK BEHIND"
|
"CLOCK BEHIND"
|
||||||
|
|
@ -279,7 +279,7 @@ pub fn start_ui(
|
||||||
// footer + logs
|
// footer + logs
|
||||||
queue!(
|
queue!(
|
||||||
stdout,
|
stdout,
|
||||||
MoveTo(2, 16), Print("[S] Sync sys clock to LTC [Q] Quit"),
|
MoveTo(2, 16), Print("[S] Sync System Clock to LTC [Q] Quit"),
|
||||||
).unwrap();
|
).unwrap();
|
||||||
for (i, msg) in logs.iter().enumerate() {
|
for (i, msg) in logs.iter().enumerate() {
|
||||||
queue!(stdout, MoveTo(2, 18 + i as u16), Print(msg)).unwrap();
|
queue!(stdout, MoveTo(2, 18 + i as u16), Print(msg)).unwrap();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue