Commit d4cc3f3f authored by zhujiashun's avatar zhujiashun

Make the condition of lalb::Disabled be _base_weight < 0

parent 6e39f039
......@@ -86,7 +86,7 @@ private:
void Describe(std::ostream& os, int64_t now);
int64_t Disable();
bool Disabled() const { return _base_weight == -1; }
bool Disabled() const { return _base_weight < 0; }
int64_t MarkOld(size_t index);
std::pair<int64_t, int64_t> ClearOld();
......
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