Commit 73494e3e authored by Andy Wei's avatar Andy Wei Committed by Facebook GitHub Bot

Simplify reinsert policy interface

Summary: Simplify the interface as the touch(), remove() methods are not needed now.

Reviewed By: therealgymmy

Differential Revision: D22547658

fbshipit-source-id: 6d5c799fb21cb4cb6ee20203c820f4d6ff7e8255
parent ab8339ea
......@@ -113,7 +113,7 @@ class TDigest {
double estimateQuantile(double q) const;
double mean() const {
return count_ ? sum_ / count_ : 0;
return count_ > 0 ? sum_ / count_ : 0;
}
double sum() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment