mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
further reduced down
This commit is contained in:
parent
2c78b20301
commit
c27b4f5dbb
1 changed files with 2 additions and 2 deletions
|
|
@ -160,9 +160,9 @@ impl LtcState {
|
||||||
pub fn get_sync_status(delta_ms: i64, config: &Config) -> &'static str {
|
pub fn get_sync_status(delta_ms: i64, config: &Config) -> &'static str {
|
||||||
if config.timeturner_offset.is_active() {
|
if config.timeturner_offset.is_active() {
|
||||||
"TIMETURNING"
|
"TIMETURNING"
|
||||||
} else if delta_ms.abs() <= 2 {
|
} else if delta_ms.abs() <= 1 {
|
||||||
"IN SYNC"
|
"IN SYNC"
|
||||||
} else if delta_ms > 3 {
|
} else if delta_ms > 2 {
|
||||||
"CLOCK AHEAD"
|
"CLOCK AHEAD"
|
||||||
} else {
|
} else {
|
||||||
"CLOCK BEHIND"
|
"CLOCK BEHIND"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue