Loading storaged/storaged_info.cpp +11 −2 Original line number Diff line number Diff line Loading @@ -87,12 +87,21 @@ void storage_info_t::load_perf_history_proto(const IOPerfHistory& perf_history) day_start_tp += chrono::seconds(perf_history.day_start_sec()); nr_samples = perf_history.nr_samples(); if (nr_samples < recent_perf.size()) { recent_perf.erase(recent_perf.begin() + nr_samples, recent_perf.end()); } size_t i = 0; for (auto bw : perf_history.recent_perf()) { if (i < recent_perf.size()) { recent_perf[i] = bw; } else { recent_perf.push_back(bw); } ++i; } nr_days = perf_history.nr_days(); int i = 0; i = 0; for (auto bw : perf_history.daily_perf()) { daily_perf[i++] = bw; } Loading Loading
storaged/storaged_info.cpp +11 −2 Original line number Diff line number Diff line Loading @@ -87,12 +87,21 @@ void storage_info_t::load_perf_history_proto(const IOPerfHistory& perf_history) day_start_tp += chrono::seconds(perf_history.day_start_sec()); nr_samples = perf_history.nr_samples(); if (nr_samples < recent_perf.size()) { recent_perf.erase(recent_perf.begin() + nr_samples, recent_perf.end()); } size_t i = 0; for (auto bw : perf_history.recent_perf()) { if (i < recent_perf.size()) { recent_perf[i] = bw; } else { recent_perf.push_back(bw); } ++i; } nr_days = perf_history.nr_days(); int i = 0; i = 0; for (auto bw : perf_history.daily_perf()) { daily_perf[i++] = bw; } Loading