mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 10:22:02 +00:00
fix: Resolve serde lifetime error in ApiStatus struct
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
parent
6ed1fc31e7
commit
060cff4089
1 changed files with 4 additions and 4 deletions
|
|
@ -20,8 +20,8 @@ struct ApiStatus {
|
|||
system_clock: String,
|
||||
timecode_delta_ms: i64,
|
||||
timecode_delta_frames: i64,
|
||||
sync_status: &'static str,
|
||||
jitter_status: &'static str,
|
||||
sync_status: String,
|
||||
jitter_status: String,
|
||||
lock_ratio: f64,
|
||||
ntp_active: bool,
|
||||
interfaces: Vec<String>,
|
||||
|
|
@ -83,8 +83,8 @@ async fn get_status(data: web::Data<AppState>) -> impl Responder {
|
|||
system_clock,
|
||||
timecode_delta_ms: avg_delta,
|
||||
timecode_delta_frames: delta_frames,
|
||||
sync_status,
|
||||
jitter_status,
|
||||
sync_status: sync_status.to_string(),
|
||||
jitter_status: jitter_status.to_string(),
|
||||
lock_ratio,
|
||||
ntp_active,
|
||||
interfaces,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue