aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ClockTAI.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2025-12-22 17:30:59 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2025-12-22 17:30:59 +0100
commitcb46e8753d747ee157241e480b02ae240ac58466 (patch)
tree65947550b3bd7134815aede845af238d3e65c582 /lib/ClockTAI.cpp
parenta11f3fa7440d9667656e92702dff6e18d623120a (diff)
downloaddabmux-cb46e8753d747ee157241e480b02ae240ac58466.tar.gz
dabmux-cb46e8753d747ee157241e480b02ae240ac58466.tar.bz2
dabmux-cb46e8753d747ee157241e480b02ae240ac58466.zip
Improve json.hpp
Diffstat (limited to 'lib/ClockTAI.cpp')
-rw-r--r--lib/ClockTAI.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ClockTAI.cpp b/lib/ClockTAI.cpp
index 12d2106..5eb6f79 100644
--- a/lib/ClockTAI.cpp
+++ b/lib/ClockTAI.cpp
@@ -726,17 +726,17 @@ const json::map_t ClockTAI::get_all_values() const
m_state->offset << " " << m_state->expires_at << " -> " << m_state->expires_in();
#endif
- stat["tai_utc_offset"].v = state.offset;
+ stat["tai_utc_offset"] = state.offset;
- stat["expiry"].v = state.expires_in(); // Might be negative when expired or 0 when invalid
+ stat["expiry"] = state.expires_in(); // Might be negative when expired or 0 when invalid
if (state.valid) {
- stat["expires_at"].v = state.expires_at;
+ stat["expires_at"] = state.expires_at;
}
else {
- stat["expires_at"].v = nullopt;
+ stat["expires_at"] = nullopt;
}
- stat["url"].v = join_string_with_pipe(m_bulletin_urls);
+ stat["url"] = join_string_with_pipe(m_bulletin_urls);
return stat;
}