]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Better credit display
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 8 Aug 2025 12:15:41 +0000 (08:15 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 8 Aug 2025 12:15:41 +0000 (08:15 -0400)
lib/modrec.c

index 5af0a31cad3bedd1d3800a82ca36d4e185dc77b9..08c934754ade85aafca9c71bf526075d23679a9d 100644 (file)
@@ -209,18 +209,13 @@ while (proceed==true) {
     case 3      :   {   //connection terminated
       static const char *cmt;
       SRVTYP *srv;
-      int total;
 
       cmt="(Contact terminated, condition=<%s>)";
-      total=0;
       if (sql_mngremote(contact->sqlptr,sql_select,contact->peerip,&srv)==true) {
-        total=srv->credit;
         srv=sql_freesrv(srv);
         }
-      (void) log_fprintlog(contact->logptr,true,cmt,contact->credit,total,
-                                                    contact->termend);
+      (void) log_fprintlog(contact->logptr,true,cmt,contact->termend);
       (void) sql_newconnect(contact->sqlptr,contact->peerip,-1);
-      cmt="(Contact terminated, credit='%3d/%3d' condition=<%s>)";
       contact=eml_dropcontact(contact);
       }
       break;