Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

fix perf_counter_info::timestamp #239

Merged
merged 2 commits into from
Apr 1, 2019

Conversation

zhangyifan27
Copy link
Contributor

fix perf_counter_info::timestamp to the timestamp when perf_counters::take_snapshot()

@@ -146,6 +146,9 @@ class perf_counters : public dsn::utils::singleton<perf_counters>
bool updated_recently{false};
};
std::unordered_map<std::string, counter_snapshot> _snapshots;

// timestamp in seconds when take snapshot of current counters
int64_t _timestamp;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议 _timestamp_in_sec

@qinzuoyan qinzuoyan merged commit c475299 into XiaoMi:master Apr 1, 2019
@neverchanje
Copy link
Contributor

Relates to apache/incubator-pegasus#235

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants