X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9fdd58e794e43fc2435265c4fb2f6933758f3c0b..87300676aa712b358ab98beaa5082b7a19e5d97a:/include/stg/user_traff.h?ds=inline

diff --git a/include/stg/user_traff.h b/include/stg/user_traff.h
index 1b9e2035..eec46276 100644
--- a/include/stg/user_traff.h
+++ b/include/stg/user_traff.h
@@ -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;
 };