thermferm/server.c

changeset 699
35382668a140
parent 698
92a080c1a5d5
child 702
d77891f8915d
--- a/thermferm/server.c	Tue Apr 23 13:06:33 2024 +0200
+++ b/thermferm/server.c	Tue Apr 23 16:52:13 2024 +0200
@@ -420,6 +420,7 @@
             device->gpiopin = -1;
             device->description = xstrcpy((char *)"Describe me here");
             device->comment = xstrcpy((char *)"Comment here");
+	    device->timestamp = time(NULL);
 
             pthread_mutex_lock(&mutexes[LOCK_DEVICES]);
             if (Config.devices == NULL) {

mercurial