From: Martin Mares Date: Sun, 12 Aug 2018 09:54:35 +0000 (+0200) Subject: SSR MQTT: Y2038 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a1edc0f013135eda0664f07a8e84c04fb251672d;p=home-hw.git SSR MQTT: Y2038 --- 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); } }