Remove redundant "virtual". (#191)
parent
2dd912f5e7
commit
97bb74157f
|
@ -37,8 +37,9 @@ string Histogram::ToString(const int buckets) const {
|
|||
const float max = *std::max_element(values_.begin(), values_.end());
|
||||
const float mean =
|
||||
std::accumulate(values_.begin(), values_.end(), 0.f) / values_.size();
|
||||
string result = "Count: " + std::to_string(values_.size()) + " Min: " +
|
||||
std::to_string(min) + " Max: " + std::to_string(max) +
|
||||
string result = "Count: " + std::to_string(values_.size()) +
|
||||
" Min: " + std::to_string(min) +
|
||||
" Max: " + std::to_string(max) +
|
||||
" Mean: " + std::to_string(mean);
|
||||
if (min == max) {
|
||||
return result;
|
||||
|
|
|
@ -47,7 +47,7 @@ class FileWriter {
|
|||
// An Implementation of file using std::ofstream.
|
||||
class StreamFileWriter : public FileWriter {
|
||||
public:
|
||||
virtual ~StreamFileWriter() override;
|
||||
~StreamFileWriter() override;
|
||||
|
||||
StreamFileWriter(const string& filename);
|
||||
|
||||
|
|
|
@ -64,8 +64,8 @@ void OrderedMultiQueue::Add(const QueueKey& queue_key,
|
|||
std::unique_ptr<Data> data) {
|
||||
auto it = queues_.find(queue_key);
|
||||
if (it == queues_.end()) {
|
||||
LOG_EVERY_N(WARNING, 1000) << "Ignored data for queue: '" << queue_key
|
||||
<< "'";
|
||||
LOG_EVERY_N(WARNING, 1000)
|
||||
<< "Ignored data for queue: '" << queue_key << "'";
|
||||
return;
|
||||
}
|
||||
it->second.queue.Push(std::move(data));
|
||||
|
|
Loading…
Reference in New Issue