]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix wrong detection of smartfilter
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 15 Feb 2010 13:44:26 +0000 (13:44 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 15 Feb 2010 13:44:26 +0000 (13:44 +0000)
report.c

index 35e9f00b842939143689f986c3763cd62a37378c..782e82112419db756ce5f72c6490d7a349f490ac 100644 (file)
--- a/report.c
+++ b/report.c
@@ -160,12 +160,12 @@ void gerarel(void)
             exit(1);
          }
          if(strncmp(acccode,"TCP_DENIED/407",14) == 0) continue;
-         if (getword_atoll(&accelap,&gwarea,'\t')<0 || getword_skip(20000,&gwarea,'\t')<0) {
-            printf("SARG: Maybe you have a broken elapsed time in your %s file (%d).\n",tmp3,__LINE__);
+         if (getword_atoll(&accelap,&gwarea,'\t')<0) {
+            debuga(_("Maybe you have a broken elapsed time in your %s file (%d)"),tmp3,__LINE__);
             exit(1);
          }
-         if (getword(accsmart,sizeof(accsmart),&gwarea,'"')<0) {
-            printf("SARG: Maybe you have a broken smart info in your %s file (%d).\n",tmp3,__LINE__);
+         if (getword_skip(20000,&gwarea,'"')<0 || getword(accsmart,sizeof(accsmart),&gwarea,'"')<0) {
+            debuga(_("Maybe you have a broken smart info in your %s file (%d)"),tmp3,__LINE__);
             exit(1);
          }