]> git.stg.codes - stg.git/blobdiff - include/stg/user_traff.h
Ticket. td->tariffConf.traffType value getting changed in the
[stg.git] / include / stg / user_traff.h
index e1176b90fdcc3c4ed00169bbf6bd413c0dc8bff9..8ef8e2608f8d3f2f569a7bb8cd4800e57a739b7b 100644 (file)
@@ -51,6 +51,12 @@ public:
     uint64_t & operator[](IndexType idx) { return traff[idx]; }
     IndexType size() const { return traff.size(); }
 
+    void Reset()
+    {
+    for (IndexType i = 0; i < traff.size(); ++i)
+        traff[i] = 0;
+    }
+
 private:
     ContainerType traff;
 };