/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
void MultiLevelTimeSeries<VT, CT>::addValue(
TimePoint now,
const ValueType& val,
- int64_t times) {
- addValueAggregated(now, val * times, times);
+ uint64_t times) {
+ addValueAggregated(now, val * ValueType(times), times);
}
template <typename VT, typename CT>
void MultiLevelTimeSeries<VT, CT>::addValueAggregated(
TimePoint now,
const ValueType& total,
- int64_t nsamples) {
+ uint64_t nsamples) {
if (cachedTime_ != now) {
flush();
cachedTime_ = now;
template <typename VT, typename CT>
void MultiLevelTimeSeries<VT, CT>::clear() {
- for (auto & level : levels_) {
+ for (auto& level : levels_) {
level.clear();
}
cachedCount_ = 0;
}
-} // folly
+} // namespace folly