From a1edc0f013135eda0664f07a8e84c04fb251672d Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 12 Aug 2018 11:54:35 +0200 Subject: [PATCH] SSR MQTT: Y2038 --- ssr/host/burrow-ssrd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssr/host/burrow-ssrd.c b/ssr/host/burrow-ssrd.c index d94cf77..8f3ec0e 100644 --- a/ssr/host/burrow-ssrd.c +++ b/ssr/host/burrow-ssrd.c @@ -238,6 +238,6 @@ int main(int argc UNUSED, char **argv) msg(L_DEBUG, "Measured raw temperature %d", t); mqtt_publish("burrow/loft/temperature", "%.3f", t / 1000.); - mqtt_publish("burrow/loft/timestamp", "%u", (int) now); + mqtt_publish("burrow/loft/timestamp", "%llu", (unsigned long long) now); } } -- 2.39.2