1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 11:12:16 +00:00

Remove c++17 structure bindings from GetPerfTimerStats (#460)

* Remove c++17 structure bindings
This commit is contained in:
Ivan Siomash 2022-09-18 16:02:08 +03:00 committed by GitHub
parent d9a5b2ccdc
commit 1464ae0b0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3312,7 +3312,9 @@ void ValidatorEngine::run_control_query(ton::ton_api::engine_validator_getPerfTi
double max = std::numeric_limits<double>::max();
double sum = 0;
int cnt = 0;
for (const auto &[time, duration] : stats.stats) {
for (const auto &stat : stats.stats) {
double time = stat.first;
double duration = stat.second;
if (now - time <= static_cast<double>(t)) {
min = td::min<double>(min, duration);
max = td::max<double>(max, duration);