git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Process services on daily basis.
[stg.git]
/
include
/
stg
/
user_traff.h
diff --git
a/include/stg/user_traff.h
b/include/stg/user_traff.h
index e1176b90fdcc3c4ed00169bbf6bd413c0dc8bff9..8ef8e2608f8d3f2f569a7bb8cd4800e57a739b7b 100644
(file)
--- 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(); }
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;
};
private:
ContainerType traff;
};