Fix get_data_and_clear() return variable
This commit is contained in:
parent
8210800683
commit
ba0aa95117
@ -31,5 +31,5 @@ map<string, uint> marcelb::Metrics::get_data() {
|
||||
map<string, uint> marcelb::Metrics::get_data_and_clear() {
|
||||
auto data = counters;
|
||||
clear();
|
||||
return counters;
|
||||
return data;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user