]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
counters: minor cleanups
authorVictor Julien <victor@inliniac.net>
Fri, 22 May 2015 12:16:10 +0000 (14:16 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 26 May 2015 15:48:03 +0000 (17:48 +0200)
src/counters.c
src/threadvars.h

index 6840fa9ea80baedeeab3d2d11b5da09223198653..cb9f3032ed78cb4e1b2bf17e4661824d65ee5e33 100644 (file)
@@ -1219,14 +1219,13 @@ SCPerfCounterArray *SCPerfGetAllCountersArray(SCPerfContext *pctx)
  *
  * \param pca      Pointer to the SCPerfCounterArray
  * \param pctx     Pointer the the tv's SCPerfContext
- * \param reset_lc Indicates whether the local counter has to be reset or not
  *
  * \retval  0 on success
  * \retval -1 on error
  */
 int SCPerfUpdateCounterArray(SCPerfCounterArray *pca, SCPerfContext *pctx)
 {
-    SCPerfCounter  *pc = NULL;
+    SCPerfCounter *pc = NULL;
     SCPCAElem *pcae = NULL;
     uint32_t i = 0;
 
index 64c215bcca807fbce97ace2bcdb3fc7a9e0839c0..6ecdda25db4a1f091a412b8062c6614d6e00841d 100644 (file)
@@ -101,8 +101,12 @@ typedef struct ThreadVars_ {
     uint16_t rank;
     int thread_priority; /** priority (real time) for this thread. Look at threads.h */
 
-    /* the perf counter context and the perf counter array */
+    /* counters */
+
+    /** public counter store: counter syncs update this */
     SCPerfContext sc_perf_pctx;
+
+    /** private counter store: counter updates modify this */
     SCPerfCounterArray *sc_perf_pca;
 
     SCCtrlMutex *ctrl_mutex;