Implement ometric_set_timeval() and ometric_set_timeval_with_labels()
authorclaudio <claudio@openbsd.org>
Tue, 6 Dec 2022 11:27:58 +0000 (11:27 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 6 Dec 2022 11:27:58 +0000 (11:27 +0000)
commit8168f85638e3080341c9252ca6a4af14325500cc
treeef1871a6a6c5a4c00f7a15b01e93243c4f719d2c
parente58056cb5d7dd11f9b5b717c0c537a779f59a495
Implement ometric_set_timeval() and ometric_set_timeval_with_labels()

Timestamps are special since they can require more significant bits
than a double provides. Instead print them as pseudo float as suggested
by the OpenMetrics draft.
OK cheloha@
usr.sbin/bgpctl/ometric.c
usr.sbin/bgpctl/ometric.h
usr.sbin/bgpctl/output_ometric.c