]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Ready to check sql from.to unixtime procedure
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 12 Jul 2025 14:56:29 +0000 (10:56 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 12 Jul 2025 14:56:29 +0000 (10:56 -0400)
lib/gessql.c
lib/unisql.h

index 1fb6834bff405cc21e07a7246c124faf2f3c6707..ac893cc2ad8d6f8f8bff518304f4398b2acf15ba 100644 (file)
@@ -330,8 +330,10 @@ while (proceed==true) {
             locsrv->rmtip=strdup(locval);
             break;
           case 2        :       //lastscan
+            locsrv->lastscan=sql_tounixtime(sqlptr,locval);
             break;
           case 3        :       //last update
+            locsrv->update=sql_tounixtime(sqlptr,locval);
             break;
           case 4        :       //Number of links
             locsrv->links=atoi(locval);
index 33c2a611622b5f6c5bd39f5022e4170922a9273e..379bdd75e1797d3b1e8ee1a39483e361f714ef26 100644 (file)
@@ -57,7 +57,7 @@ typedef struct  {
 typedef struct  {
         char *rmtip;    //Remote IP number
         time_t lastscan;//last scan time
-        time_t lupdate; //last update time
+        time_t update;  //last update time
         int links;      //Number of connection from this remote 
         int credit;     //Remote credit number
         char *listing;  //Remote listing explaination