]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Counters: remove unused updated field
authorVictor Julien <victor@inliniac.net>
Wed, 30 Oct 2013 18:42:09 +0000 (19:42 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 31 Oct 2013 11:32:35 +0000 (12:32 +0100)
src/counters.c
src/counters.h

index 0a778ce4ccc7e4a936a44d4eb38c1383f00c2051..2d77f4565d62ea32481742b6e91f430c4584b838 100644 (file)
@@ -1216,8 +1216,6 @@ int SCPerfUpdateCounterArray(SCPerfCounterArray *pca, SCPerfContext *pctx)
 
             SCPerfCopyCounterValue(&pcae[i]);
 
-            pc->updated++;
-
             pc = pc->next;
             break;
         }
index a918ae4390b80ce48c5c136d33cc1c77f86e0abb..a7f9c82ce8816cb0a704ecb4b70e8d400320ffe5 100644 (file)
@@ -73,9 +73,6 @@ typedef struct SCPerfCounter_ {
 
     uint64_t value;
 
-    /* no of times the local counter has been synced with this counter */
-    uint64_t updated;
-
     /* name of the counter */
     char *cname;
     /* name of the thread module this counter is registered to */