]> mj.ucw.cz Git - home-hw.git/commitdiff
SSR MQTT: Y2038
authorMartin Mares <mj@ucw.cz>
Sun, 12 Aug 2018 09:54:35 +0000 (11:54 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 12 Aug 2018 09:54:35 +0000 (11:54 +0200)
ssr/host/burrow-ssrd.c

index d94cf773ede45d12b5fa8e5c0228c039949cb116..8f3ec0e8b58371ec62822483dd159193f7803780 100644 (file)
@@ -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);
        }
 }